requirements 파일 수정
This commit is contained in:
jung-geun
2023-07-18 10:44:41 +09:00
parent fbecda4b89
commit 32f4b8e6ed
6 changed files with 16 additions and 655 deletions

1
.gitignore vendored
View File

@@ -12,6 +12,7 @@ pso2keras.egg-info/
# 테스트용 파일 # 테스트용 파일
test.ipynb test.ipynb
test.py
# 결과 저장용 디렉토리 # 결과 저장용 디렉토리
result/ result/

View File

@@ -5,12 +5,11 @@ channels:
dependencies: dependencies:
- cudatoolkit=11.2 - cudatoolkit=11.2
- cudnn=8.1.0 - cudnn=8.1.0
- matplotlib=3.7.1
- pandas=1.5.3 - pandas=1.5.3
- pip=23.0.1 - pip=23.0.1
- python=3.9.16 - python=3.9.16
- tqdm=4.65.0 - tqdm=4.65.0
- pip: - pip:
- numpy==1.23.5 - numpy==1.25.0
- tensorflow==2.11.0 - tensorflow==2.11.0
- tensorboard==2.11.0 - tensorboard==2.11.0

139
plt.ipynb

File diff suppressed because one or more lines are too long

View File

@@ -234,6 +234,7 @@ class Optimizer:
self.renewal = renewal self.renewal = renewal
try: try:
train_log_dir = "logs/fit/" + self.day
if log == 2: if log == 2:
assert log_name is not None, "log_name is None" assert log_name is not None, "log_name is None"
@@ -319,7 +320,6 @@ class Optimizer:
for epoch in epochs_pbar: for epoch in epochs_pbar:
max_score = 0 max_score = 0
min_loss = np.inf min_loss = np.inf
part_pbar = tqdm( part_pbar = tqdm(
range(len(self.particles)), range(len(self.particles)),
desc=f"acc : {max_score:.4f} loss : {min_loss:.4f}", desc=f"acc : {max_score:.4f} loss : {min_loss:.4f}",
@@ -373,7 +373,15 @@ class Optimizer:
del p_ del p_
score = self.particles[i].step_w( score = self.particles[i].step_w(
x, y, self.c0, self.c1, w, g_best, w_p, w_g, renewal=renewal x,
y,
self.c0,
self.c1,
w,
g_best,
w_p,
w_g,
renewal=renewal,
) )
else: else:

View File

@@ -1,7 +1,6 @@
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1680185408135/work ipython
keras==2.11.0 keras==2.11.0
matplotlib @ file:///croot/matplotlib-suite_1679593461707/work numpy==1.25.0
numpy @ file:///work/mkl/numpy_and_numpy_base_1682953417311/work
pandas==1.5.3 pandas==1.5.3
tensorflow==2.11.1 tensorflow==2.11.1
tqdm @ file:///croot/tqdm_1679561862951/work tqdm==4.65.0

File diff suppressed because one or more lines are too long