Showing posts with the label regression

[FIXED] Value error for CatboostRegressor with StratifiedKFold

Issue I just started learning Catboost and tried to use CatboostRegressor with StratifiedKFold, but…

[FIXED] Keras - How to perform a prediction using KerasRegressor?

Issue I am new to machine learning, and I am trying to handle Keras to perform regression tasks. I …

[FIXED] Predict on test data, using plm package in R, and calculate RMSE for test data

Issue I built a model, using plm package. The sample dataset is href="https://docs.google.com/…

[FIXED] map/loop different regression models for multiple dependent and independent variables

Issue I know there is a lot on this topic, but I still could not figure it out myself. I have a dat…

[FIXED] How could one use either an lapply or a For Loop combined with an IF in R to return just the names of LASSO IVs with coefficients > 0?

Issue I have via lots of legwork and previous helpful answers to previous Stackoverflow questions s…

[FIXED] How to make a Stepwise Regression function which runs fine on a single csv run on a folder full of csvs using lapply?

Issue I am trying to run/fit an individual Backward Elimination Stepwise Regression on each of N cs…

[FIXED] How to find the 'peak' of a polynomial regression line in Matplotlib

Issue Is it possible to find the peak (vertex?) values (x,y) of a polynomial regression line that w…

[FIXED] ggplot2: How to plot an orthogonal regression line?

Issue I have tested a large sample of participants on two different tests of visual perception – no…

[FIXED] Find the break point and compare slopes

Issue With my following data: structure(list(id = c("AC12-PRD-C1", "AC12-PRD-C1&quo…

[FIXED] What is the difference between LinearRegression and SGDRegressor?

Issue I understand that both LinearRegression class and SGDRegressor class from scikit-learn per…

[FIXED] Programmatically add residuals by group as new column

Issue I'm trying to add columns to lists in a for loop and I've tried $ notation and the f…

[FIXED] Adding Regression Line Equation and R2 on SEPARATE LINES graph

Issue A few years ago, a poster asked how to add regression line equation and R2 on ggplot graphs a…

[FIXED] Compare predicted values from group-wise linear regression models

Issue I have the following data for two groups ("Healthy" and "CAD"): df <-…

[FIXED] running regression with clusters from k means

Issue I did k means clustering by running below code X_std = StandardScaler().fit_transform(df_log…

[FIXED] Custom Simple Contrasts R/emmeans, how to exclude comparisons

Issue I'm trying to exclude contrasts from simple pairs. Made up data: library(emmeans) libra…

[FIXED] Rolling Regression in Python

Issue I am trying to implement a Rolling Regression in Python and failed to do so using the statsmo…

[FIXED] Relative importance for several groups in R

Issue How do I calculate the relative importance using relaimpo package in R when I want to run it …

[FIXED] Using Keras ImageDataGenerator in a regression model

Issue I want to use the flow_from_directory method of the ImageDataGenerator to generate training…

[FIXED] How do I use nonlinear interpolation to determine a single value on a curve

Issue I have data that looks like this: src="https://i.stack.imgur.com/U3gsX.png" alt=&q…

[FIXED] non-numeric argument to binary operator with nls

Issue I'd like to fit a non-linear model using nls , but I'm getting a non-numeric argument…