features=dataset_bin_enc.loc[:,"MathScore_(-0.1, 10.0]":"WritingScore_(90.4, 100.0]"] y=features.values X=dataset_bin_enc["average"].values print(X) print(y) type(X1)
时间: 2024-01-22 18:20:21 浏览: 61
rgbd_dataset_freiburg1_room.bag
5星 · 资源好评率100%
I think there might be a typo in your code. The variable `X1` is not defined, so I'm not sure what you're trying to print. Assuming you meant `X`, the code should look like this:
```
features = dataset_bin_enc.loc[:, "MathScore_(-0.1, 10.0]":"WritingScore_(90.4, 100.0]"]
y = features.values
X = dataset_bin_enc["average"].values
print(X)
print(y)
print(type(X))
```
This will print the `X` array, the `y` array, and the type of `X`. The `X` array should contain the values of the "average" column from your dataset, and `y` should contain the values of the columns between "MathScore_(-0.1, 10.0]" and "WritingScore_(90.4, 100.0]". The `type(X)` statement will print the type of `X`, which should be a numpy array.
阅读全文