init command creates a new Neurenix project with a standard folder structure, configuration files, and an optional dataset.
Usage
Options
| Option | Type | Default | Description |
|---|---|---|---|
--name | string | neurenix-project | Name of the project directory to create |
--template | string | basic | Project template (basic or advanced) |
--dataset | string | None | Dataset to download (URL or registered name) |
--force | flag | false | Force overwrite if directory exists |
Templates
Basic Template
The basic template creates a minimal project structure suitable for getting started quickly:config.json):
- MLP model with layers [128, 64, 10]
- ReLU activation
- Adam optimizer with learning rate 0.001
- Batch size 32, 10 epochs
- Auto device selection
Advanced Template
The advanced template creates a comprehensive project structure for production-ready workflows:config.json):
- ResNet-18 model with pretrained weights
- Adam optimizer with learning rate 0.0001
- Cosine learning rate scheduler with warmup
- Batch size 64, 20 epochs
- Mixed precision training
- Data augmentation enabled
Examples
Create a basic project
Create an advanced project
Initialize with a dataset
Overwrite existing directory
Generated Files
config.json (Basic)
train.py (Basic)
Error Handling
Directory already exists
Dataset download failure
Next Steps
After initializing your project:-
Navigate to the project directory:
-
Customize the configuration in
config.json -
Add your dataset to the
data/directory -
Run the training script:
See Also
- Run command - Train models
- Dataset command - Manage datasets