Skip to main content

tisthemachinelearner


Lightweight interface to scikit-learn with 2 classes, Classifier and Regressor. Home of FiniteDiffRegressor (see Backpropagating quasi-randomized neural networks https://thierrymoudiki.github.io/blog/2025/06/23/python/backprop-qrnn).

PyPI [PyPI - License] Downloads Documentation

Installing (for Python and R)

Python

  • 1st method: by using pip at the command line for the stable version
pip install tisthemachinelearner
  • 2nd method: from Github, for the development version
pip install git+https://github.com/Techtonique/tisthemachinelearner.git

or

git clone https://github.com/Techtonique/tisthemachinelearner.git
cd tisthemachinelearner
make install

Examples

import numpy as np
from sklearn.datasets import load_diabetes, load_breast_cancer
from sklearn.model_selection import train_test_split
from tisthemachinelearner import Classifier, Regressor

# Classification
X, y = load_breast_cancer(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

clf = Classifier("LogisticRegression", random_state=42)
clf.fit(X_train, y_train)
print(clf.predict(X_test))
print(clf.score(X_test, y_test))

clf = Classifier("RandomForestClassifier", n_estimators=100, random_state=42)
clf.fit(X_train, y_train)
print(clf.predict(X_test))
print(clf.score(X_test, y_test))

# Regression
X, y = load_diabetes(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

reg = Regressor("LinearRegression")
reg.fit(X_train, y_train)
print(reg.predict(X_test))
print(np.sqrt(np.mean((reg.predict(X_test) - y_test) ** 2)))

reg = Regressor("RidgeCV", alphas=[0.01, 0.1, 1, 10])
reg.fit(X_train, y_train)
print(reg.predict(X_test))
print(np.sqrt(np.mean((reg.predict(X_test) - y_test) ** 2)))

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

This software contains code derived from scikit-learn, which is licensed under the BSD 3-Clause License. See NOTICE file for details.

Metadata

Release files for tisthemachinelearner 0.8.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tisthemachinelearner 0.8.6
File Size Uploaded
tisthemachinelearner-0.8.6.tar.gz 96.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tisthemachinelearner 0.8.6
File Interpreter ABI Platform
tisthemachinelearner-0.8.6-py3-none-any.whl Python 3 none any Details

Total release size: 107.7 kB

Release files / tisthemachinelearner-0.8.6.tar.gz

Download URL tisthemachinelearner-0.8.6.tar.gz
Size 96.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b9cd572d1f8bb5f0074544cb2bf49e386075257bfbf0248f7b6134375c10150e
BLAKE2b-256 checksum
How to use checksums
434a9656ed0c17853c01a422d3bc8d24251cd242288266fc31b43928759e83bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / tisthemachinelearner-0.8.6-py3-none-any.whl

Download URL tisthemachinelearner-0.8.6-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
232199a94a13191c5715f2c3b14d068bb407833b4bb2bc9b30b79ea6921d24d3
BLAKE2b-256 checksum
How to use checksums
c4e07100ed00e91d0f1c33bd3ca91142ebf055c5f9dfbd07c5907d3880054e64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.8.6 This release

2 release files

0.8.4

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page