Skip to main content

Math algorithms in ML on torch

Project description

PyPi Python Download License RTD


Nueramic MathML

Nueramic-mathml is a library for visualizing and logging the steps of basic optimization algorithms in machine learning. The project uses torch for calculations and plotly for visualization.

pip install nueramic-mathml

Quick tour Colab_1

Optimization

You can minimize the functions and see a detailed description of each step. After minimizing, you have a history with complete logs. Also available multidimensional optimisation.

def f(x): return x ** 3 - x ** 2 - x  # Minimum at x = 1
bounds = (0, 3)
one_optimize.golden_section_search(f, bounds, epsilon=0.01, verbose=True)[0]

Iteration: 0        |        point = 1.500  |        f(point) = -0.375
Iteration: 1        |        point = 0.927  |        f(point) = -0.990
Iteration: 2        |        point = 1.281  |        f(point) = -0.820
Iteration: 3        |        point = 1.062  |        f(point) = -0.992
Iteration: 4        |        point = 0.927  |        f(point) = -0.990
Iteration: 5        |        point = 1.011  |        f(point) = -1.000
Iteration: 6        |        point = 0.959  |        f(point) = -0.997
Iteration: 7        |        point = 0.991  |        f(point) = -1.000
Iteration: 8        |        point = 1.011  |        f(point) = -1.000
Iteration: 9        |        point = 0.998  |        f(point) = -1.000
Iteration: 10       |        point = 1.006  |        f(point) = -1.000
Searching finished. Successfully. code 0
1.0059846881033916

Models

You can use our models for classification and regression

a

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nueramic_mathml-0.1.5.tar.gz (27.8 kB view hashes)

Uploaded Source

Built Distribution

nueramic_mathml-0.1.5-py3-none-any.whl (31.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page