mirror of
https://github.com/Doctorado-ML/FImdlp.git
synced 2025-08-18 17:05:52 +00:00
new cutPoints algo complete
This commit is contained in:
22
sample.py
22
sample.py
@@ -8,15 +8,15 @@ X = data.data
|
||||
y = data.target
|
||||
features = data.feature_names
|
||||
test = FImdlp()
|
||||
# test.fit(X, y, features=features).transform(X)
|
||||
test.fit(X, y, features=features).transform(X)
|
||||
|
||||
X = np.array(
|
||||
[
|
||||
[5.1, 3.5, 1.4, 0.2],
|
||||
[5.2, 3.0, 1.4, 0.2],
|
||||
[5.3, 3.2, 1.3, 0.2],
|
||||
[5.3, 3.1, 1.5, 0.2],
|
||||
]
|
||||
)
|
||||
y = np.array([0, 0, 0, 1])
|
||||
test.fit(X, y).transform(X)
|
||||
# X = np.array(
|
||||
# [
|
||||
# [5.1, 3.5, 1.4, 0.2],
|
||||
# [5.2, 3.0, 1.4, 0.2],
|
||||
# [5.3, 3.2, 1.3, 0.2],
|
||||
# [5.3, 3.1, 1.5, 0.2],
|
||||
# ]
|
||||
# )
|
||||
# y = np.array([0, 0, 0, 1])
|
||||
# test.fit(X, y).transform(X)
|
||||
|
Reference in New Issue
Block a user