Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue in python (google colab) #2

Open
emiksapitri opened this issue Aug 20, 2023 · 0 comments
Open

issue in python (google colab) #2

emiksapitri opened this issue Aug 20, 2023 · 0 comments

Comments

@emiksapitri
Copy link

emiksapitri commented Aug 20, 2023

Dear @giorgioroffo,

i use your library as in https://pypi.org/project/PyIFS/#description
but i had an error like this:


NameError Traceback (most recent call last)
in <cell line: 6>()
4
5 inf = PyIFS.InfFS()
----> 6 [RANKED, WEIGHT] = inf.infFS(X_train_EN, y_train_column_vector, alpha=0.5, supervision=1, verbose=1)

/usr/local/lib/python3.10/dist-packages/PyIFS/InfFS.py in infFS(self, x_train, y_train, alpha, supervision, verbose)
113 STDMatrix = self.SubtractMin(STDMatrix)
114 sigma_ij = self.DivideByMax(STDMatrix)
--> 115 for i in range( 0,sigma_ij.shape[0] ):
116 for j in range( 0,sigma_ij.shape[1] ):
117 if( math.isnan(sigma_ij[i,j]) or sigma_ij[i,j] < -1 or sigma_ij[i,j] > 1 ):

NameError: name 'math' is not defined

i try to add "import math" before installing pyIFS but it not solve.
do you have any advice to solve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant