API Reference
This section contains detailed API documentation for all MLAI modules and functions.
API Reference:
- MLAI Core Module
- Key Components:
- Mathematical Focus:
- Educational Design:
filename_join()
write_animation()
write_animation_html()
write_figure()
init_perceptron()
update_perceptron()
Model
ProbModel
MapModel
ProbMapModel
LM
Basis
linear()
polynomial()
radial()
fourier()
relu()
hyperbolic_tangent()
Noise
Gaussian
SimpleNeuralNetwork
SimpleDropoutNeuralNetwork
NonparametricDropoutNeuralNetwork
BLM
load_pgm()
LR
GP
posterior_f()
update_inverse()
Kernel
exponentiated_quadratic()
eq_cov()
matern32_cov()
matern52_cov()
icm_cov()
slfm_cov()
prod_kern()
relu_cov()
polynomial_cov()
linear_cov()
bias_cov()
mlp_cov()
sinc_cov()
ou_cov()
brownian_cov()
periodic_cov()
ratquad_cov()
prod_cov()
add_cov()
basis_cov()
contour_data()
radial_multivariate()
- Plotting Module
- mlai.plot
pred_range()
matrix()
base_plot()
covariance_capacity()
prob_diagram()
bernoulli_urn()
bayes_billiard()
hyperplane_coordinates()
init_perceptron()
update_perceptron()
contour_error()
regression_contour()
init_regression()
update_regression()
regression_contour_fit()
regression_contour_sgd()
over_determined_system()
gaussian_of_height()
marathon_fit()
rmse_fit()
holdout_fit()
loo_fit()
cv_fit()
under_determined_system()
bayes_update()
height_weight()
independent_height_weight()
correlated_height_weight()
two_point_pred()
output_augment_x()
basis()
computing_covariance()
kern_circular_sample()
animate_covariance_function()
covariance_func()
rejection_samples()
two_point_sample()
poisson()
logistic()
height()
weight()
low_rank_approximation()
blank_canvas()
kronecker_illustrate()
kronecker_IK()
kronecker_IK_highlight()
kronecker_WX()
perceptron()
dist2()
clear_axes()
non_linear_difficulty_plot_3()
non_linear_difficulty_plot_2()
non_linear_difficulty_plot_1()
network
layer
deep_nn()
deep_nn_bottleneck()
box()
stack_gp_sample()
vertical_chain()
horizontal_chain()
shared_gplvm()
three_pillars_innovation()
model_output()
model_sample()
multiple_optima()
google_trends()
- Gaussian Process Tutorial Module
- Deep Gaussian Process Tutorial Module
- Mountain Car Module
Module Overview
mlai: Core machine learning functionality
plot: Plotting utilities and visualization tools
gp_tutorial: Gaussian Process tutorial functions
deepgp_tutorial: Deep Gaussian Process tutorial functions
mountain_car: Mountain car reinforcement learning example
Code Style
All MLAI code follows these conventions:
Functions and classes are documented with detailed docstrings
Mathematical notation is used in comments and docstrings
Type hints are provided where they improve clarity
Examples are included in docstrings
For more information about the project’s coding standards, see the Project Tenets.