Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit c88381a

Browse files
committed
pip
1 parent f8e3b54 commit c88381a

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.actions/assistant.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def bash_render(folder: str, output_file: str = PATH_SCRIPT_RENDER) -> Optional[
322322
cmd += [f"cp {meta_file} {pub_meta}", f"cat {pub_meta}", f"git add {pub_meta}"]
323323
else:
324324
pip_req, pip_args = AssistantCLI._parse_requirements(folder)
325-
cmd += [f"pip install {pip_req} {pip_args}", "pip list"]
325+
cmd += [f"pip install {pip_req} --quiet {pip_args}", "pip list"]
326326
cmd.append(f"# available: {AssistantCLI.DEVICE_ACCELERATOR}\n")
327327
if AssistantCLI._valid_accelerator(folder):
328328
cmd.append(f"python -m papermill {ipynb_file} {pub_ipynb} --kernel python")
@@ -369,7 +369,7 @@ def bash_test(folder: str, output_file: str = PATH_SCRIPT_TEST) -> Optional[str]
369369
if AssistantCLI._valid_accelerator(folder):
370370
# and install specific packages
371371
pip_req, pip_args = AssistantCLI._parse_requirements(folder)
372-
cmd += [f"pip install {pip_req} {pip_args}", "pip list"]
372+
cmd += [f"pip install {pip_req} --quiet {pip_args}", "pip list"]
373373
# Export the actual packages used in runtime
374374
cmd.append(f"meta_file=$(python .actions/assistant.py update-env-details {folder} --base_path .)")
375375
# show created meta config

requirements/default.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ipython[notebook]
2-
pytorch-lightning>=1.3
3-
torchmetrics>=0.3
2+
pytorch-lightning>=1.4
3+
torchmetrics>=0.6
44
torch>=1.6, <1.9

templates/titanic/tutorial.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
target_fields="Survived",
4040
train_file=csv_train,
4141
val_split=0.1,
42-
batch_size=8,
42+
batch_size=32,
4343
)
4444

4545
# %% [markdown]
@@ -49,7 +49,7 @@
4949
model = TabularClassifier.from_data(
5050
datamodule,
5151
learning_rate=0.1,
52-
optimizer="Adam",
52+
optimizer="AdamW",
5353
n_a=8,
5454
gamma=0.3,
5555
)
@@ -81,6 +81,7 @@
8181
sns.relplot(data=metrics, kind="line")
8282
plt.gca().set_ylim([0, 1.25])
8383
plt.gcf().set_size_inches(10, 5)
84+
plt.grid()
8485

8586
# %% [markdown]
8687
# ## 4. Generate predictions from a CSV

0 commit comments

Comments
 (0)