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

getting error which classification with text label #491

@vrunda-joshi

Description

@vrunda-joshi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions