discretization Questions

3

Solved

I'm relatively new to Python and am trying to get some data prepped to train a RandomForest. For various reasons, we want the data to be discrete, so there are a few continuous variables that need ...
Dermott asked 26/8, 2019 at 7:54

2

Solved

I have a continuous input function which I would like to discretize into lets say 5-10 discrete bins between 1 and 0. Right now I am using np.digitize and rescale the output bins to 0-1. Now the pr...
Shaftesbury asked 13/12, 2021 at 8:1

5

My data consists of a mix of continuous and categorical features. Below is a small snippet of how my data looks like in the csv format (Consider it as data collected by a super store chain that ope...
Kiersten asked 24/4, 2014 at 11:35

4

Solved

In Python, suppose that I have continuous variables x and y, whose values are bounded between 0 and 1 (to make it easier). My assumption has always been that if I want to convert those variables in...
Disclaim asked 7/2, 2019 at 16:7

1

Solved

Is there a way to discretize a column from a Pandas dataframe based on custom limits (meaning the ranges are not of equal length)? Previous questions asked here don't cover this case. For example,...
Jacquelynejacquelynn asked 6/7, 2018 at 21:59

3

I am using arules package to discretize my continuous variables in data frame. I am using this particular line discretize(data1,categories = 3) but its giving me an error Error in cut.default(x...
Sheilasheilah asked 19/8, 2015 at 16:0

1

Solved

I am trying to discretize a continuous variable, cutting it into three levels. I want to do the same thing for the log of the positive continuous variable (in this case, income). require(dplyr) s...
Hargreaves asked 13/4, 2016 at 4:55
1

© 2022 - 2024 — McMap. All rights reserved.