Alchemy Catalyst 20.3 | Coderz Repository

alchemy-catalyst 20.3

Last updated:

0 purchases

alchemy-catalyst 20.3 Image
alchemy-catalyst 20.3 Images

Free

Languages

Categories

Add to Cart

Description:

alchemycatalyst 20.3

Experiments logging & visualization










Part of Catalyst Ecosystem. Project manifest.

Installation
Common installation:
pip install -U alchemy-catalyst

Getting started


Goto Alchemy and get your personal token.


Run following example.py:
import random

from alchemy import Logger

# insert your personal token here
token = "..."
project = "default"

for gid in range(1):
group = f"group_{gid}"
for eid in range(2):
experiment = f"experiment_{eid}"
logger = Logger(
token=token,
experiment=experiment,
group=group,
project=project,
)
for mid in range(4):
metric = f"metric_{mid}"
# let's sample some random data
n = 300
x = random.randint(-10, 10)
for i in range(n):
logger.log_scalar(metric, x)
x += random.randint(-1, 1)
logger.close()



Now you should see your metrics on Alchemy.


Catalyst.Ecosystem


Goto Alchemy and get your personal token.


Log your Catalyst experiment with AlchemyRunner:
from catalyst.dl import SupervisedAlchemyRunner
runner = SupervisedAlchemyRunner()

runner.train(
model=model,
criterion=criterion,
optimizer=optimizer,
loaders=loaders,
logdir=logdir,
num_epochs=num_epochs,
verbose=True,
monitoring_params={
"token": "...", # insert your personal token here
"project": "default",
"experiment": "your_experiment_name",
"group": "your_experiment_group_name",
}
)



Now you should see your metrics on Alchemy.


Examples
For mode detailed tutorials, please follow Catalyst examples.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.