Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about inverse-transform

Read more about inverse-transform

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - inverse-transform

Sklearn Label Encoder - Not getting desired output based on prediction and inverse transform

I'm new to the Python ML using scikit. I was working on a solution to create a model with three columns Pets, Owner and location. import pandas import joblib from sklearn.tree import DecisionTreeClass...
test-img

ItsMeGokul

python

scikit-learn

predict

label-encoding

inverse-transform

Votes: 0

Answers: 1

Latest Answer

The logic you following is not correct. df_encoded = df.apply(le.fit_transform) Here the same encoder ( le ) fitted for every column and end of this line execution le has only the location inform...
test-img

sulhi

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved