Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

getting error which classification with text label #491

Open
vrunda-joshi opened this issue Jun 4, 2020 · 0 comments
Open

getting error which classification with text label #491

vrunda-joshi opened this issue Jun 4, 2020 · 0 comments

Comments

@vrunda-joshi
Copy link

vrunda-joshi commented Jun 4, 2020

Hi,
I am looking for the code where i can predict multiclass classification.
I have trained code in m.net and predicting in python using nimbusml.
here is my sample code.

AirQualityClassification.zip

"
import pandas as pd
from nimbusml import Pipeline
p = Pipeline()
p.load_model("/dbfs/FileStore/tables/AirQualityClassification.zip")
ds = pd.read_csv('/dbfs/FileStore/tables/Testing_Data.csv')

score = p.predict(ds,y='Status',evaltype='multiclass')

"
Getting error: 'Could not apply a map over type 'String' to column 'Status' since it has type 'Double''
Testdata csv

PM25 PM10 O3_8H CO_8H SO2_1H NO2_1H
146 351 0.168 2 464 1139
86 194 0.156 14.7 236 658
48 111 0.18 4.2 533 132
124 356 0.005 6.1 330 1139
239 82 0.114 12 613 953
219 156 0.112 6.6 360 1157
6 218 0.076 7.2 649 213
295 415 0.18 16 518 354
104 443 0.158 4 636 602

Thanks in advance

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

No branches or pull requests

1 participant