Features
Get Started with Delta
Adding Delta to Your Project
To add the Delta library to your Rust project, you need to include it
in your Cargo.toml
file. Follow these steps:
- Open your project's
Cargo.toml
file. - Add the following line under
[dependencies]
:
Currently, we have published Delta to deltaml, but note that this is still experimental in alpha stage so things might break in the upcoming iterations.
1. Create the main
Function
We start with an empty asynchronous main function using #[tokio::main]
.
2. Define a Neural Network
Next, we create a neural network using Delta’s Sequential
model.
3. Compile the Model
Before training, we need to compile the model by defining the optimizer and loss function.
4. Load the Dataset
Now, we load the CIFAR-10 dataset for training, validation, and testing.
5. Train the Model
We train the model using the loaded training data.
6. Validate the Model
After training, we validate the model using the validation dataset.
7. Evaluate the Model
Finally, we evaluate the model on the test dataset.
8. Save the Model
Once satisfied with the model, we save it to a file for later use.