Skip to main content
The init command creates a new Neurenix project with a standard folder structure, configuration files, and an optional dataset.

Usage

Options

Templates

Basic Template

The basic template creates a minimal project structure suitable for getting started quickly:
Configuration (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:
Configuration (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:
  1. Navigate to the project directory:
  2. Customize the configuration in config.json
  3. Add your dataset to the data/ directory
  4. Run the training script:

See Also