oikan 0.0.3.9__py3-none-any.whl → 0.0.3.10__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.
- oikan/elasticnet.py +1 -1
- oikan/model.py +1 -1
- {oikan-0.0.3.9.dist-info → oikan-0.0.3.10.dist-info}/METADATA +3 -3
- oikan-0.0.3.10.dist-info/RECORD +11 -0
- oikan-0.0.3.9.dist-info/RECORD +0 -11
- {oikan-0.0.3.9.dist-info → oikan-0.0.3.10.dist-info}/WHEEL +0 -0
- {oikan-0.0.3.9.dist-info → oikan-0.0.3.10.dist-info}/licenses/LICENSE +0 -0
- {oikan-0.0.3.9.dist-info → oikan-0.0.3.10.dist-info}/top_level.txt +0 -0
oikan/elasticnet.py
CHANGED
@@ -3,7 +3,7 @@ import torch
|
|
3
3
|
import numpy as np
|
4
4
|
|
5
5
|
class ElasticNet(nn.Module):
|
6
|
-
def __init__(self, alpha=1.0, l1_ratio=0.5, fit_intercept=False, max_iter=
|
6
|
+
def __init__(self, alpha=1.0, l1_ratio=0.5, fit_intercept=False, max_iter=5000, tol=1e-4, random_state=None):
|
7
7
|
super().__init__()
|
8
8
|
self.alpha = alpha
|
9
9
|
self.l1_ratio = l1_ratio
|
oikan/model.py
CHANGED
@@ -301,7 +301,7 @@ class OIKAN(ABC):
|
|
301
301
|
self.neural_net = TabularNet(input_size, self.hidden_sizes, output_size, self.activation)
|
302
302
|
optimizer = optim.Adam(self.neural_net.parameters(), lr=self.lr)
|
303
303
|
dataset = torch.utils.data.TensorDataset(torch.tensor(X, dtype=torch.float32),
|
304
|
-
|
304
|
+
y.clone().detach())
|
305
305
|
loader = torch.utils.data.DataLoader(dataset, batch_size=self.batch_size, shuffle=True)
|
306
306
|
self.neural_net.train()
|
307
307
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: oikan
|
3
|
-
Version: 0.0.3.
|
3
|
+
Version: 0.0.3.10
|
4
4
|
Summary: OIKAN: Neuro-Symbolic ML for Scientific Discovery
|
5
5
|
Author: Arman Zhalgasbayev
|
6
6
|
License: MIT
|
@@ -132,7 +132,7 @@ model = OIKANRegressor(
|
|
132
132
|
activation='relu', # Activation function (other options: 'tanh', 'leaky_relu', 'elu', 'swish', 'gelu')
|
133
133
|
augmentation_factor=5, # Augmentation factor for data generation
|
134
134
|
alpha=1.0, # ElasticNet regularization strength (Symbolic regression)
|
135
|
-
|
135
|
+
l1_ratio=0.5, # ElasticNet mixing parameter (0 <= l1_ratio <= 1). 0 is equivalent to Ridge regression, 1 is equivalent to Lasso (Symbolic regression)
|
136
136
|
sigma=5, # Standard deviation of Gaussian noise for data augmentation
|
137
137
|
top_k=5, # Number of top features to select (Symbolic regression)
|
138
138
|
epochs=100, # Number of training epochs
|
@@ -186,7 +186,7 @@ model = OIKANClassifier(
|
|
186
186
|
activation='relu', # Activation function (other options: 'tanh', 'leaky_relu', 'elu', 'swish', 'gelu')
|
187
187
|
augmentation_factor=10, # Augmentation factor for data generation
|
188
188
|
alpha=1.0, # ElasticNet regularization strength (Symbolic regression)
|
189
|
-
|
189
|
+
l1_ratio=0.5, # ElasticNet mixing parameter (0 <= l1_ratio <= 1). 0 is equivalent to Ridge regression, 1 is equivalent to Lasso (Symbolic regression)
|
190
190
|
sigma=5, # Standard deviation of Gaussian noise for data augmentation
|
191
191
|
top_k=5, # Number of top features to select (Symbolic regression)
|
192
192
|
epochs=100, # # Number of training epochs
|
@@ -0,0 +1,11 @@
|
|
1
|
+
oikan/__init__.py,sha256=Dh1Rf9ONRdm75B6tFiv9Y9P6NNiHAiKPCGDMuag6TTE,724
|
2
|
+
oikan/elasticnet.py,sha256=eeuK4lJ-7lsGZIyiXNH6NKYxhbbKbPp1kp8vLe4t7_4,2614
|
3
|
+
oikan/exceptions.py,sha256=GhHWqy2Q5LVBcteTy4ngnqxr7FOoLNyD8dNt1kfRXyw,901
|
4
|
+
oikan/model.py,sha256=lI5YTJr7a9ohVQv4B4lDcOueNIC5NARbuap3OKIr_gs,26213
|
5
|
+
oikan/neural.py,sha256=PZjaffSuABuCNxu-7PinU1GR6ji0Y6xRgSQ3n5HRDxI,1572
|
6
|
+
oikan/utils.py,sha256=7UCm9obO-8Q2zhetdAkukMDOZvGSBWUL_dSF04XqM7k,8808
|
7
|
+
oikan-0.0.3.10.dist-info/licenses/LICENSE,sha256=75ASVmU-XIpN-M4LbVmJ_ibgbzbvRLVti8FhnR0BTf8,1096
|
8
|
+
oikan-0.0.3.10.dist-info/METADATA,sha256=aVF1sUBOPHZeaiIebwFvpIwIw9W-XXqI13B0kkXK3X8,13127
|
9
|
+
oikan-0.0.3.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
10
|
+
oikan-0.0.3.10.dist-info/top_level.txt,sha256=XwnwKwTJddZwIvtrUsAz-l-58BJRj6HjAGWrfYi_3QY,6
|
11
|
+
oikan-0.0.3.10.dist-info/RECORD,,
|
oikan-0.0.3.9.dist-info/RECORD
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
oikan/__init__.py,sha256=Dh1Rf9ONRdm75B6tFiv9Y9P6NNiHAiKPCGDMuag6TTE,724
|
2
|
-
oikan/elasticnet.py,sha256=yByuG9KCFQ4PpT2ze6oTSDy0DxvdF5MAJoegUGEipSA,2614
|
3
|
-
oikan/exceptions.py,sha256=GhHWqy2Q5LVBcteTy4ngnqxr7FOoLNyD8dNt1kfRXyw,901
|
4
|
-
oikan/model.py,sha256=UAjRYwb-kEap4AJkJ3OVmpNWpun0qgcad5m6x-mUbN8,26237
|
5
|
-
oikan/neural.py,sha256=PZjaffSuABuCNxu-7PinU1GR6ji0Y6xRgSQ3n5HRDxI,1572
|
6
|
-
oikan/utils.py,sha256=7UCm9obO-8Q2zhetdAkukMDOZvGSBWUL_dSF04XqM7k,8808
|
7
|
-
oikan-0.0.3.9.dist-info/licenses/LICENSE,sha256=75ASVmU-XIpN-M4LbVmJ_ibgbzbvRLVti8FhnR0BTf8,1096
|
8
|
-
oikan-0.0.3.9.dist-info/METADATA,sha256=KCUIcXDdneq4MTgnIKmOHf0OPjWUzmQSm21ayOIYQZs,13124
|
9
|
-
oikan-0.0.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
10
|
-
oikan-0.0.3.9.dist-info/top_level.txt,sha256=XwnwKwTJddZwIvtrUsAz-l-58BJRj6HjAGWrfYi_3QY,6
|
11
|
-
oikan-0.0.3.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|