Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ With `uv` installed,
uv add "git+https://github.com/MatchCake/MatchCake-Opt"
```

To install the package with cu128 (CUDA), add `--extra cu128` to the installation commands above.


### For developers

Expand Down Expand Up @@ -79,7 +81,7 @@ class LinearNN(ClassificationModel):
RangeParameterConfig(
name="n_neurons",
parameter_type="int",
bounds=(4, 16),
bounds=(4, 2048),
),
]

Expand All @@ -93,7 +95,7 @@ class LinearNN(ClassificationModel):
):
super().__init__(input_shape=input_shape, output_shape=output_shape, learning_rate=learning_rate, **kwargs)
self.save_hyperparameters("learning_rate", "n_neurons")
self.nn = torch.Sequential(
self.nn = torch.nn.Sequential(
torch.nn.Flatten(),
torch.nn.LazyLinear(n_neurons),
torch.nn.ReLU(),
Expand All @@ -107,7 +109,7 @@ class LinearNN(ClassificationModel):
def output_size(self):
return int(np.prod(self.output_shape))

datamodule = DataModule.from_dataset_name("Digits2D")
datamodule = DataModule.from_dataset_name("Digits2D", fold_id=0)
automl_pipeline = AutoMLPipeline(model_cls=LinearNN, datamodule=datamodule)
automl_pipeline.run()
lt_pipeline, metrics = automl_pipeline.run_best_pipeline()
Expand Down
4 changes: 2 additions & 2 deletions src/matchcake_opt/tr_pipeline/automl_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

class AutoMLPipeline:
DEFAULT_AUTOML_ITERATIONS = 32
DEFAULT_INNER_MAX_EPOCHS = 10_000
DEFAULT_INNER_MAX_TIME = "90:00:00:00"
DEFAULT_INNER_MAX_EPOCHS = 1024
DEFAULT_INNER_MAX_TIME = "00:01:00:00"
DEFAULT_AUTOML_OVERWRITE_FIT = False

@classmethod
Expand Down