Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

One-hot multinomial logisitc regression

Project description

One-hot multinomial logistic regression

Quick Start


- To install ``ohmlr`` on your computer using ``pip``, execute

.. code-block:: sh

pip install ohmlr

- Test out ``ohmlr`` in Python:

.. code-block:: python

import ohmlr
import numpy as np

# create model and generate data
n_features = 16
n_x_classes = np.random.randint(2, 10, size=n_features)
n_y_classes = 8
model = ohmlr.ohmlr().random(n_features, n_x_classes, n_y_classes)
x, y = model.generate_data(n_samples=1000)

# fit and score model, y)
print(model.score(x, y))


Online documentation:

Source code repository:

Python package index:

Project details

Download files

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

Files for ohmlr, version 0.0.17
Filename, size File type Python version Upload date Hashes
Filename, size ohmlr-0.0.17.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page