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

ValueError: Input contains NaN, infinity or a value too large for dtype('float64'). #28

Open
Ishank-811 opened this issue Aug 6, 2020 · 1 comment

Comments

@Ishank-811
Copy link

import pandas as pd
import numpy as np
from sklearn import datasets , linear_model
from sklearn.linear_model import LogisticRegression
df = pd.read_csv('Data_Train.csv')
pd.isnull(df).sum() > 0
data=df.describe()
df.isnull()
df.describe().columns
x1 = df[['Year', 'Seats']].values
y1= df[['Price']]
from sklearn.model_selection import train_test_split
x_train , x_test , y_train , y_test = train_test_split(x1, y1)
x_train.shape , x_test.shape , y_train.shape , y_test.shape
from sklearn.linear_model import LinearRegression
linreg = LinearRegression();
from sklearn.neighbors import KNeighborsClassifier
knn= KNeighborsClassifier()
knn.fit(x_train,y_train)

@Guanzhou-Ke
Copy link

Are you sure your problem should be posted here? I cannot see any error about gcForest.

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

2 participants