DeeprAI Docs
Official DeeprAI documentation.
Getting Started
How to set up your first network
Feed Forward Model
Creating a layer
Function Signature def add_dense( neurons: int, activation: str = 'sigmoid', drop...
Configuring Loss/Optimizers
Function Signature def config( optimizer: str = 'gradient descent', loss: str = 'mean ...
Training a network
Function Signature def train_model( train_inputs: np.ndarray, train_targets: np.ndarra...
Running data through a network
Function Signature def run( self, inputs: np.ndarray ) -> np.ndarray: Parameters ...
Viewing network information
Function Signature def specs(self) -> str: Return Value output (str): A string representatio...
Graphing
Function Signature def graph(self, metric: str = "cost") -> None: Parameters metric (str, op...
Saving a Model
Function Signature def save(self, file_location: str) -> None: Parameters file_locatio...
Loading a Model
Function Signature def load(self, file_location: str) -> None: Parameters file_locatio...
Activation Functions
How to use the activations in your own project
Loss Functions
Set up loss functions for your own project
Embeddings
Tools
Tools for helping create neural networks
Regression
Regression Models
Linear Regression
Module: deeprai.models.regression.linear_regression This module introduces a simple Linear Regre...
Poly Regression
Module: deeprai.models.regression.poly_regression Class: PolyRegression A class representatio...
Sine Regression
Module: deeprai.models.regression.sine_regression Class: SineRegression A class representatio...
K-Nearest Neighbors
K-nearest neighbors (KNN) is a supervised machine learning algorithm that classifies a data point...
Instant classifier
Instant Classifier Function Function Signature def instant_classifier(self, x_vals, y_vals,...
Store Data in KNN
Storing Values in KNN Classifier Function Signature def store_vals(self, x_values, y_values, ...
Classifying a Query Point
Classifying a Query Point with KNN Function Signature def classify(self, query_point): Par...
Calculating Classification Probability
Calculating Classification Probability with KNN Function Signature def classify_probability(s...
Retrieving Nearest Neighbors
Retrieving Nearest Neighbors with KNN Function Signature def classify_neighbors(self, query_p...
Configuring Distance Metric
Configuring Distance Metric for KNN Function Signature def config_distance(self, distance): ...