Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about cudf

Read more about cudf

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 - cudf

How To Pass cuDF Dataframe to cuML.ensemble.RandomForestClassifier?

I'm trying to fit data to the cuml.ensemble.RandomForestClassifier and I keep getting the error: "The labels need to be consecutive values from 0 to the number of unique label values" I'm pa...
test-img

Jacob Dallas

python

random-forest

cudf

Votes: 0

Answers: 1

Latest Answer

Ended up that you need to encode Y1's Dataframe first before passing it: enc = cuml.preprocessing.LabelEncoder() Y1 = enc.fit_transform(Y1) Shoutout to @beckernick for helping me out with this!
test-img

Jacob Dallas

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