Skip to content

Commit

Permalink
Need to test the materials
Browse files Browse the repository at this point in the history
  • Loading branch information
leschultz committed Apr 18, 2024
1 parent 72f2810 commit 06a4990
Show file tree
Hide file tree
Showing 38 changed files with 43 additions and 5,191 deletions.
39 changes: 0 additions & 39 deletions examples/materials/asr/fit.py

This file was deleted.

2 changes: 0 additions & 2 deletions examples/materials/asr/run.sh

This file was deleted.

9 changes: 0 additions & 9 deletions examples/materials/asr/submit.sh

This file was deleted.

9 changes: 8 additions & 1 deletion examples/materials/combined/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ def main():

# Data
X, y = datasets.load(tasks)
data = datasets.splitter(X, y, tasks, train_size=1)
data = datasets.splitter(
X,
y,
tasks,
train_size=0.8,
val_size=0.1,
test_size=0.1,
)

for k, v in data.items():
data[k]['scaler'] = StandardScaler()
Expand Down
11 changes: 9 additions & 2 deletions examples/synthetic/fit.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ def main():
save_dir = 'outputs'
lr = 1e-4
batch_size = 32
n_epochs = 100
n_epochs = 1000
tasks = ['data1', 'data2', 'data3']

# Data
X, y = datasets.toy()
data = datasets.splitter(X, y, tasks, train_size=1)
data = datasets.splitter(
X,
y,
tasks,
train_size=0.8,
val_size=0.1,
test_size=0.1,
)

for k, v in data.items():
data[k]['scaler'] = StandardScaler()
Expand Down
1,000 changes: 0 additions & 1,000 deletions examples/synthetic/outputs/data1/X_train.csv

This file was deleted.

Binary file removed examples/synthetic/outputs/data1/loss.pkl
Binary file not shown.

This file was deleted.

Binary file not shown.
1 change: 0 additions & 1 deletion examples/synthetic/outputs/data1/parity/train.png.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file removed examples/synthetic/outputs/data1/scaler.joblib
Binary file not shown.
Loading

0 comments on commit 06a4990

Please sign in to comment.