Skip to content

Unit 6.5 Video 4 #48

May 11, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Sorry for the hassle, my bad, I just saw the file that I uploaded had

app = LightningApp(
    Sweep(
        script_path=ops.join(ops.dirname(__file__), "./mlp_cli2.py"),
        total_experiments=3,
        parallel_experiments=1,
        distributions={
            "model.learning_rate": LogUniform(0.001, 0.1),
            "model.hidden_units": Categorical(["[50, 100]", "[100, 200]"]),
            "data.batch_size": Categorical([32, 64]),
            "trainer.max_epochs": IntUniform(1, 3),
        },
        algorithm=OptunaAlgorithm(optuna.create_study(direction="maximize")),
        framework="pytorch_lightning",
    )
)

instead of

app = LightningApp(
    Sweep(
        script_path=ops.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DSJohannes
Comment options

Answer selected by rasbt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants