ezyml 0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ezyml might be problematic. Click here for more details.

@@ -0,0 +1,290 @@
1
+ Metadata-Version: 2.4
2
+ Name: ezyml
3
+ Version: 0.1
4
+ Summary: A lightweight tool to train, evaluate, and export ML models in one line.
5
+ Home-page: https://github.com/Rktim/ezyml
6
+ Author: Raktim Kalita
7
+ Author-email: raktimkalita.ai@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
12
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
13
+ Requires-Python: >=3.7
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: scikit-learn
17
+ Requires-Dist: pandas
18
+ Requires-Dist: numpy
19
+ Requires-Dist: xgboost
20
+ Dynamic: author
21
+ Dynamic: author-email
22
+ Dynamic: classifier
23
+ Dynamic: description
24
+ Dynamic: description-content-type
25
+ Dynamic: home-page
26
+ Dynamic: license-file
27
+ Dynamic: requires-dist
28
+ Dynamic: requires-python
29
+ Dynamic: summary
30
+
31
+ ๐Ÿ“ฆ ezyml โ€” Train and Export ML Models in 1 Line
32
+ ezyml is a lightweight Python and CLI tool to train, evaluate, and export ML models for classification, regression, clustering, and dimensionality reduction โ€” all in a single command or function call.
33
+
34
+ ๐ŸŒŸ Features
35
+ โœ… Auto-detects task (classification / regression / clustering / PCA)
36
+ โœ… Trains supported models with proper preprocessing
37
+ โœ… Saves .pkl model and .json metrics
38
+ โœ… Works as both a Python API and CLI tool
39
+ โœ… Built-in support for 20+ ML models
40
+ โœ… Optional dimensionality reduction with PCA/t-SNE
41
+ โœ… Exportable model + report with 1 line
42
+
43
+ ๐Ÿ“ฆ Installation
44
+ pip install ezyml
45
+
46
+ ๐Ÿ’ป CLI Usage
47
+ ๐Ÿง  Train a Classification Model
48
+ ezyml train
49
+
50
+ --data data.csv
51
+
52
+ --target label
53
+
54
+ --model xgboost
55
+
56
+ --output model.pkl
57
+
58
+ --report report.json
59
+
60
+ ๐Ÿ“ˆ Train a Regression Model
61
+ ezyml train --data house.csv --target price --model lasso --output house_model.pkl
62
+
63
+ ๐Ÿ” Clustering
64
+ ezyml train --data user_vectors.csv --model dbscan --task clustering
65
+
66
+ ๐Ÿ“‰ Dimensionality Reduction (PCA)
67
+ ezyml reduce --data image_data.csv --model pca --components 2 --output pca_result.csv
68
+
69
+ ๐Ÿงช Python API Usage
70
+ from ezyml import EZTrainer
71
+
72
+ Classification example
73
+ trainer = EZTrainer(data='heart.csv', target='label', model='naive_bayes')
74
+ trainer.train()
75
+ trainer.save_model('heart_model.pkl')
76
+ trainer.save_report('heart_report.json')
77
+
78
+ PCA example
79
+ trainer = EZTrainer(data='high_dim.csv', model='pca', task='dim_reduction', n_components=2)
80
+ trainer.train()
81
+ trainer.save_transformed('pca_output.csv')
82
+
83
+ ๐Ÿงฐ Supported Tasks and Models
84
+ ๐Ÿง  Classification Models
85
+ Model Name
86
+
87
+ Code ID
88
+
89
+ Logistic Regression
90
+
91
+ logistic_regression
92
+
93
+ Random Forest
94
+
95
+ random_forest
96
+
97
+ XGBoost Classifier
98
+
99
+ xgboost
100
+
101
+ SVM (Linear)
102
+
103
+ svm
104
+
105
+ Naive Bayes
106
+
107
+ naive_bayes
108
+
109
+ Gradient Boosting
110
+
111
+ gradient_boosting
112
+
113
+ Extra Trees
114
+
115
+ extra_trees
116
+
117
+ K-Nearest Neighbors
118
+
119
+ knn
120
+
121
+ ๐Ÿ“ˆ Regression Models
122
+ Model Name
123
+
124
+ Code ID
125
+
126
+ Linear Regression
127
+
128
+ linear_regression
129
+
130
+ Ridge Regression
131
+
132
+ ridge
133
+
134
+ Lasso Regression
135
+
136
+ lasso
137
+
138
+ ElasticNet
139
+
140
+ elasticnet
141
+
142
+ Random Forest Regr.
143
+
144
+ random_forest
145
+
146
+ XGBoost Regr.
147
+
148
+ xgboost
149
+
150
+ SVR
151
+
152
+ svr
153
+
154
+ Gradient Boosting
155
+
156
+ gradient_boosting
157
+
158
+ ๐Ÿ” Clustering Models
159
+ Model Name
160
+
161
+ Code ID
162
+
163
+ KMeans
164
+
165
+ kmeans
166
+
167
+ DBSCAN
168
+
169
+ dbscan
170
+
171
+ Agglomerative Clustering
172
+
173
+ agglo
174
+
175
+ ๐Ÿ“‰ Dimensionality Reduction
176
+ Method
177
+
178
+ Code ID
179
+
180
+ PCA
181
+
182
+ pca
183
+
184
+ t-SNE
185
+
186
+ tsne
187
+
188
+ ๐Ÿ“Š Metrics
189
+ Task
190
+
191
+ Metrics
192
+
193
+ Classification
194
+
195
+ Accuracy, F1, ROC AUC, Confusion Matrix
196
+
197
+ Regression
198
+
199
+ MAE, MSE, RMSE, Rยฒ
200
+
201
+ Clustering
202
+
203
+ Silhouette Score, n_clusters
204
+
205
+ PCA/t-SNE
206
+
207
+ None (returns transformed data)
208
+
209
+ ๐Ÿง  API Reference: EZTrainer
210
+ EZTrainer(
211
+ data: str | pd.DataFrame,
212
+ target: str | None = None,
213
+ model: str = "random_forest",
214
+ task: str = "auto", # or: classification, regression, clustering, dim_reduction
215
+ test_size: float = 0.2,
216
+ scale: bool = True,
217
+ n_components: int = None, # For PCA or t-SNE
218
+ )
219
+
220
+ Methods
221
+ Method
222
+
223
+ Description
224
+
225
+ .train()
226
+
227
+ Trains the selected model
228
+
229
+ .save_model(path)
230
+
231
+ Saves the model to .pkl
232
+
233
+ .save_report(path)
234
+
235
+ Saves metrics/report as .json
236
+
237
+ .save_transformed(path)
238
+
239
+ Saves transformed data for PCA/t-SNE
240
+
241
+ .predict(X)
242
+
243
+ Returns predictions
244
+
245
+ ๐Ÿงฐ CLI Reference
246
+
247
+ General training
248
+ ezyml train
249
+
250
+ --data FILE.csv
251
+
252
+ --target TARGET
253
+
254
+ --model MODEL_NAME
255
+
256
+ --output model.pkl
257
+
258
+ --report metrics.json
259
+
260
+ --task classification|regression|clustering
261
+
262
+ Dimensionality Reduction
263
+ ezyml reduce --data FILE.csv --model pca --components 2 --output reduced.csv
264
+
265
+ ๐Ÿงช Examples
266
+ Classify Titanic Dataset with Extra Trees:
267
+
268
+ ezyml train --data titanic.csv --target Survived --model extra_trees --output model.pkl
269
+
270
+ Regress Housing Prices using Ridge:
271
+
272
+ ezyml train --data housing.csv --target price --model ridge --output model.pkl
273
+
274
+ Cluster Data:
275
+
276
+ ezyml train --data vectors.csv --model kmeans --task clustering
277
+
278
+ PCA:
279
+
280
+ ezyml reduce --data features.csv --model pca --components 2 --output pca_data.csv
281
+
282
+
283
+
284
+ ๐Ÿ“œ License
285
+ MIT License
286
+
287
+ ๐Ÿ‘จโ€๐Ÿ’ป Author
288
+ Raktim Kalita
289
+ Machine Learning Engineer, Automator of Ideas ๐Ÿ’ก
290
+ GitHub: @raktimkalita
@@ -0,0 +1,6 @@
1
+ ezyml-0.1.dist-info/licenses/LICENSE,sha256=nXS6lwSVEKkIzE9fsp6XQrJ0SYuSFDYZDIn514aGMEk,1089
2
+ ezyml-0.1.dist-info/METADATA,sha256=rx6YuDGXZpwNoGQNxhqc3evjW0vigZ376bExLWZBxbQ,4850
3
+ ezyml-0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
4
+ ezyml-0.1.dist-info/entry_points.txt,sha256=qI_TMOukrveQBmMa7qvRtmiz196jmbuxVISYfs8-pzg,41
5
+ ezyml-0.1.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
6
+ ezyml-0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ ezyml = ezyml.cli:main
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Raktim Kalita
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+