Skip to main content

English | Español | Français | Deutsch | 中文 | Türkçe | 日本語 | 한국어

train_test_sim

A library to create quick simulation of optimal train-test size you can keep

Developed by Marcel Tino (c) 2024

Examples of How To Use the library

You can use this to alter according to your requirements

##syntax
from train_test_sim import get_simulation
model=RandomForestClassifier()
get_simulation(X,Y,model)

you can use any model on sklearn or xgboost. All you need to do is specify correct model name
from train_test_sim import get_simulation
from sklearn.datasets import load_diabetes
import numpy as np
from sklearn.ensemble import RandomForestClassifier
diabetes = load_diabetes()
X, y = diabetes.data, diabetes.target

# Convert the target variable to binary (1 for diabetes, 0 for no diabetes)
Y = (y > np.median(y)).astype(int)
model = RandomForestClassifier()

get_simulation(X, Y, model)

Note: We can create this for any model

  • Share retail_dictionary on these social media platforms if you like it! Reddit HackerNews Twitter Facebook LinkedIn

Release files for train-test-sim 0.1.1

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

Source distribution (sdist)

Source distribution for train-test-sim 0.1.1
File Size Uploaded
train_test_sim-0.1.1.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for train-test-sim 0.1.1
File Interpreter ABI Platform
train_test_sim-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / train_test_sim-0.1.1.tar.gz

Download URL train_test_sim-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
0acc616d1a46d326b1f9cc63c89cd31443a29d5fa0a86cc41084eb17a4d3cd10
BLAKE2b-256 checksum
How to use checksums
4c69baeb4174faa8f2a68bcc814b2eca316e07d091cc65d3ecb799c4129c561b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release files / train_test_sim-0.1.1-py3-none-any.whl

Download URL train_test_sim-0.1.1-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49ebeefab7b8becd4e025bd5b0c182fb8805343904ab7001b37643eefeaaa4e6
BLAKE2b-256 checksum
How to use checksums
08e20e071cdf0b442c7cf6f0e7cf6df48879b6293c82fb796a3728266190ba0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.1.1 This release

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