For questions about implementation of Machine Learning and Artificial Intelligence algorithms in the R programming language.
Questions tagged [r]
7 questions
35
votes
8 answers
Is a switch from R to Python worth it?
I just finished a 1-year Data Science master's program where we were taught R. I found that Python is more popular and has a larger community in AI.
What are the advantages that Python may have over R in terms of features applicable to the field of…

ItsMeMario
- 503
- 1
- 4
- 6
2
votes
1 answer
Predict frequently purchased items under certain conditions with customer purchasing history data
I have purchasing history data for grocery shopping. I am trying to get abnormally frequently purchased items under certain conditions. For instance, I am trying to find frequently purchased items, when customers shop online and are willing to pay…

John legend2
- 141
- 2
2
votes
1 answer
Machine learning to find drivers of an event with presence-only data (no absence)
I have some ecological data on the confirmed presence of a certain animal. I have data on the:
Date
Relevant metadata about the site
Simple metrics on the animal
A complete weather record for the site.
I'm assuming the presence of this animal is…

Vint
- 121
- 3
1
vote
2 answers
Defining rules for an expert system
I'm doing a project for my last university examination but I'm having some troubles! I'm making an expert system who should be able to assemble a computer after asking some questions to the user. It works but according to my teacher I need to define…

Mark
- 31
- 2
1
vote
1 answer
Why does my neural network to predict $x$ given $\sin(x)$ not generalize?
I made a simple feedforward neural network (FFNN) to predict $x$ from $\sin(x)$. It failed. Does it mean the model has overfitted? Why doesn't it work?
set.seed(1234567890)
Var3 <- runif(500, 0, 20)
mydata3 <-…

homa taha
- 13
- 2
0
votes
1 answer
Data analysis before feeding to ML pipeline
I'm new to machine learning and I've been working through a dataset of ~3000 records with ~100 features. I've been hand rolling Python and R scripts to analyse the data. For example, plotting the distribution of each feature to see how normal it is,…

Cosmicnet
- 103
- 3
0
votes
2 answers
How to avoid over-fitting using early stopping when using R cross validation package caret
I have a data set with 36 rows and 9 columns. I am trying to make a model to predict the 9th column
I have tried modeling the data using a range of models using caret to perform cross-validation and hyper parameter tuning: 'lm', random forrest…