No project description provided
Project description
DFFML Models For scikit / sklearn
About
Models created using scikit.
Install
$ python3 -m pip install --user dffml-model-scikit
Usage
- Linear Regression Model
For implementing linear regression to a dataset, let us take a simple example:
Years of Experience | Expertise | Trust Factor | Salary |
---|---|---|---|
0 | 01 | 0.2 | 10 |
1 | 03 | 0.4 | 20 |
2 | 05 | 0.6 | 30 |
3 | 07 | 0.8 | 40 |
4 | 09 | 1.0 | 50 |
5 | 11 | 1.2 | 60 |
$ cat > train.csv << EOF
Years,Expertise,Trust,Salary
0,1,0.2,10
1,3,0.4,20
2,5,0.6,30
3,7,0.8,40
EOF
$ cat > test.csv << EOF
Years,Expertise,Trust,Salary
4,9,1.0,50
5,11,1.2,60
EOF
$ dffml train \
-model scikitlr \
-model-features Years:int:1 Expertise:int:1 Trust:float:1 \
-model-predict Salary \
-model-directory tempdir \
-sources f=csv \
-source-filename train.csv \
-source-readonly \
-log debug
$ dffml accuracy \
-model scikitlr \
-model-features Years:int:1 Expertise:int:1 Trust:float:1 \
-model-predict Salary \
-model-directory tempdir \
-sources f=csv \
-source-filename test.csv \
-source-readonly \
-log debug
$ echo -e 'Years,Expertise,Trust\n6,13,1.4\n' | \
dffml predict all \
-model scikitlr \
-model-features Years:int:1 Expertise:int:1 Trust:float:1 \
-model-predict Salary \
-model-directory tempdir \
-sources f=csv \
-source-filename /dev/stdin \
-source-readonly \
-log debug
License
Scikit Models are distributed under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dffml-model-scikit-0.1.0.tar.gz
(16.1 kB
view details)
Built Distribution
File details
Details for the file dffml-model-scikit-0.1.0.tar.gz
.
File metadata
- Download URL: dffml-model-scikit-0.1.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 805e63beb272ace7a5033688b87ef7f8e08636ca650e610a3b8920fbb31ec8c1 |
|
MD5 | 3fd78aa2c33195f0867522d4a0f00176 |
|
BLAKE2b-256 | 0032281d209f056572a8982904c326a1c220f8f848f8c78d9c0cffe28e0a8573 |
File details
Details for the file dffml_model_scikit-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: dffml_model_scikit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8528c08bec5cb30351e56726f5db86da48b8c5dfe4edf09e5c760f2c0ef4639 |
|
MD5 | 6ace0e78ee37a6075e52c23938670887 |
|
BLAKE2b-256 | 13ee2b93dcec87b02b6b7e673cb0537ccf58623e0e9e0a8f355c597dac68598f |