Skip to content

Commit

Permalink
add output
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-santiago committed Mar 7, 2024
1 parent e29f135 commit a746c97
Show file tree
Hide file tree
Showing 28 changed files with 15,256 additions and 0 deletions.
24 changes: 24 additions & 0 deletions outputs/preprocess/2024-03-06/22-53-33/.hydra/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
data:
raw: s4e2-train.csv
incl_test: false
file_suffix: s4e2-ps
features:
numeric:
- Age
- Height
- Weight
- FCVC
- NCP
- CH2O
- FAF
- TUE
categoric:
- Gender
- family_history_with_overweight
- FAVC
- CAEC
- SMOKE
- SCC
- CALC
- MTRANS
target: NObeyesdad
166 changes: 166 additions & 0 deletions outputs/preprocess/2024-03-06/22-53-33/.hydra/hydra.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
hydra:
run:
dir: outputs/${hydra.job.name}/${now:%Y-%m-%d}/${now:%H-%M-%S}
sweep:
dir: outputs/${hydra.job.name}/multirun
subdir: ${hydra.job.override_dirname}/${now:%Y-%m-%d}/${now:%H-%M-%S}
launcher:
_target_: hydra_plugins.hydra_joblib_launcher.joblib_launcher.JoblibLauncher
n_jobs: -1
backend: null
prefer: processes
require: null
verbose: 0
timeout: null
pre_dispatch: 2*n_jobs
batch_size: auto
temp_folder: null
max_nbytes: null
mmap_mode: r
sweeper:
_target_: hydra._internal.core_plugins.basic_sweeper.BasicSweeper
max_batch_size: null
params: null
help:
app_name: ${hydra.job.name}
header: '${hydra.help.app_name} is powered by Hydra.
'
footer: 'Powered by Hydra (https://hydra.cc)
Use --hydra-help to view Hydra specific help
'
template: '${hydra.help.header}
== Configuration groups ==
Compose your configuration from those groups (group=option)
$APP_CONFIG_GROUPS
== Config ==
Override anything in the config (foo.bar=value)
$CONFIG
${hydra.help.footer}
'
hydra_help:
template: 'Hydra (${hydra.runtime.version})
See https://hydra.cc for more info.
== Flags ==
$FLAGS_HELP
== Configuration groups ==
Compose your configuration from those groups (For example, append hydra/job_logging=disabled
to command line)
$HYDRA_CONFIG_GROUPS
Use ''--cfg hydra'' to Show the Hydra config.
'
hydra_help: ???
hydra_logging:
version: 1
formatters:
simple:
format: '[%(asctime)s][HYDRA] %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: simple
stream: ext://sys.stdout
root:
level: INFO
handlers:
- console
loggers:
logging_example:
level: DEBUG
disable_existing_loggers: false
job_logging:
version: 1
formatters:
simple:
format: '[%(asctime)s][%(name)s][%(levelname)s] - %(message)s'
handlers:
console:
class: logging.StreamHandler
formatter: simple
stream: ext://sys.stdout
file:
class: logging.FileHandler
formatter: simple
filename: ${hydra.runtime.output_dir}/${hydra.job.name}.log
root:
level: INFO
handlers:
- console
- file
disable_existing_loggers: false
env: {}
mode: RUN
searchpath: []
callbacks: {}
output_subdir: .hydra
overrides:
hydra:
- hydra.mode=RUN
task: []
job:
name: preprocess
chdir: null
override_dirname: ''
id: ???
num: ???
config_name: preprocess
env_set: {}
env_copy: []
config:
override_dirname:
kv_sep: '='
item_sep: ','
exclude_keys: []
runtime:
version: 1.3.2
version_base: '1.3'
cwd: /Users/chrissantiago/Dropbox/GitHub/scarf
config_sources:
- path: hydra.conf
schema: pkg
provider: hydra
- path: /Users/chrissantiago/Dropbox/GitHub/scarf/scarf/conf
schema: file
provider: main
- path: ''
schema: structured
provider: schema
output_dir: /Users/chrissantiago/Dropbox/GitHub/scarf/outputs/preprocess/2024-03-06/22-53-33
choices:
hydra: eval
hydra/env: default
hydra/callbacks: null
hydra/job_logging: default
hydra/hydra_logging: default
hydra/hydra_help: default
hydra/help: default
hydra/sweeper: basic
hydra/launcher: joblib
hydra/output: default
verbose: false
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
Binary file not shown.
85 changes: 85 additions & 0 deletions outputs/scarf-encoder/train/2024-03-06/21-10-15/.hydra/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
data:
batch_size: 128
n_workers: 10
name: obesity
train:
_target_: torch.utils.data.DataLoader
dataset:
_target_: scarf.data.CSVDataset
file_path: data/train-s4e2-ps.csv
batch_size: ${data.batch_size}
shuffle: true
num_workers: ${data.n_workers}
valid:
_target_: torch.utils.data.DataLoader
dataset:
_target_: scarf.data.StaticDataset
batch_size: ${data.batch_size}
shuffle: false
num_workers: ${data.n_workers}
model:
optimizer:
_target_: torch.optim.Adam
_partial_: true
lr: 0.001
betas:
- 0.9
- 0.999
weight_decay: 0
scheduler:
_target_: torch.optim.lr_scheduler.ReduceLROnPlateau
_partial_: true
mode: min
factor: 0.1
patience: 10
name: scarf-encoder
nn:
_target_: scarf.models.scarf.SCARFEncoder
dim_hidden: 256
n_encoder_layers: 4
n_projection_layers: 2
p_mask: 0.6
loss_func:
_target_: pytorch_metric_learning.losses.SelfSupervisedLoss
loss:
_target_: pytorch_metric_learning.losses.NTXentLoss
temperature: 1.0
trainer:
_target_: pytorch_lightning.Trainer
max_epochs: 300
accelerator: mps
devices: 1
logger:
_target_: pytorch_lightning.loggers.WandbLogger
project: scarf
name: null
id: null
group: null
job_type: null
save_dir: ${hydra:runtime.output_dir}
log_model: true
tags: ${tags}
check_val_every_n_epoch: 10
callbacks:
model_summary:
_target_: pytorch_lightning.callbacks.RichModelSummary
progress_bar:
_target_: pytorch_lightning.callbacks.RichProgressBar
refresh_rate: 5
leave: true
early_stopping:
_target_: pytorch_lightning.callbacks.EarlyStopping
monitor: valid-loss
min_delta: 0.001
patience: 3
check_on_train_epoch_end: false
model_checkpoint:
_target_: pytorch_lightning.callbacks.ModelCheckpoint
dirpath: ${hydra:runtime.output_dir}/checkpoints
monitor: train-loss
save_top_k: 1
save_on_train_epoch_end: true
seed: 43
tags:
- ${data.name}
- ${model.name}
Loading

0 comments on commit a746c97

Please sign in to comment.