instmodel 0.1.0__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.
@@ -0,0 +1,21 @@
1
+ from decimal import Decimal
2
+ import numpy as np
3
+ import pandas as pd
4
+
5
+ def hide_id(datax, id_k):
6
+ datax = datax.copy()
7
+ datax[id_k] = -1.0
8
+ return datax
9
+
10
+ def convert_to_serializable(obj):
11
+ if isinstance(obj, dict):
12
+ return {k: convert_to_serializable(v) for k, v in obj.items()}
13
+ elif isinstance(obj, list):
14
+ return [convert_to_serializable(x) for x in obj]
15
+ elif isinstance(obj, np.ndarray):
16
+ return [convert_to_serializable(x) for x in obj.tolist()]
17
+ elif isinstance(obj, (np.float32, np.float64, np.float16)):
18
+ return Decimal(str(float(obj))) # Convert floats to Decimal for precision
19
+ elif isinstance(obj, (np.int32, np.int64, np.int16, np.int8)):
20
+ return int(obj)
21
+ return obj
@@ -0,0 +1,17 @@
1
+ Metadata-Version: 2.2
2
+ Name: instmodel
3
+ Version: 0.1.0
4
+ Summary: A package that provides advanced coding tools for training and deploying AI
5
+ Home-page:
6
+ Author: Joao Ferreira
7
+ Author-email: joaoprcf@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Operating System :: OS Independent
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: tensorflow==2.17.0
12
+ Requires-Dist: numpy
13
+ Requires-Dist: pandas
14
+ Requires-Dist: scipy
15
+ Requires-Dist: scikit-learn
16
+
17
+ This package allow the easy creation of training models with keras backend and deploy them directly as instruction model
@@ -0,0 +1,9 @@
1
+ instmodel/__init__.py,sha256=u7TbDLPkkoPMMg98fmIBmEDQezuA_7nQVYNOX9CXrYw,106
2
+ instmodel/embeddings.py,sha256=Gn1MjNqfFDOntR2F5lz7JV0-7DSvL-4egfmHsV-Yz1k,13479
3
+ instmodel/instruction_model.py,sha256=84kyVcNu1bxVFCSX_w8XCbm6Nb2uMKGxCes5UQgjT-s,14836
4
+ instmodel/model.py,sha256=tqUhuCDbBiXOEfopE2Lx8evmwD3HdRgEvl6X8qacnvQ,30701
5
+ instmodel/training_utils.py,sha256=gZbl7OUFTFuvxNauX2CFgQM-V2MoA122C1_IYycROqI,741
6
+ instmodel-0.1.0.dist-info/METADATA,sha256=kaTMkej1Z-nHT2JauS3zFQ0WW8lP9vUFRE4j2WKwz0E,588
7
+ instmodel-0.1.0.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
8
+ instmodel-0.1.0.dist-info/top_level.txt,sha256=coNe66mWL_pATMZnxqGpccW_LFtVufZnEN3_Ml2ILEI,10
9
+ instmodel-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (76.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ instmodel