Skip to content

Error with PredictSinglePrice method #8

@msetodev

Description

@msetodev

When attempting to predict the price of a single house, via

HouseData hd = new HouseData() { Area = "76", BedRooms = 3, BedRoomsBsmt = 0, FullBath = 2, HalfBath = 0, Rooms = 7, ApproxSquFeet = 1300, GarageType = "Attached", GarageSpaces = 2 };

HousePricePrediction.PredictSinglePrice(hd, mlContext, _modelPath);
The following error occurs:

'Type should contain a member named CatGarageType'

It highlights the following line:

var predictionFunction = mlContext.Model.CreatePredictionEngine<HouseData, HousePrediction>(loadedModel, dataViewSchema);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions