<p>我需要帮助
我在研究机器学习。
我尝试使用以下代码导入数据集:</p>
<pre><code> # Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the <a href="https://www.cnpython.com/pypi/dataset" class="inner-link">dataset</a>
dataset = pd.read_csv('Rural3.csv', low_memory=False)
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 77].values
# Splitting the dataset into the Training set and Test set
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.25, random_state = 0)
# Feature Scaling
from sklearn.preprocessing import StandardScaler
sc = StandardScaler()
X_train = sc.fit_transform(X_train)
X_test = sc.transform(X_test)
</code></pre>
<p>但是,会出现一个错误:
ValueError:输入包含无穷大或对dtype('float64')太大的值</p>
<p>我该怎么办?我是python的新手。
提前谢谢。在</p>