All Questions
Tagged with pandas machine-learning
19 questions
1
vote
1
answer
131
views
Custom neural network implementation in TensorFlow to compare normalisation vs. no normalisation on data
I am performing a sports prediction multi-class classification problem, and wanted to compare the differences in model performance between normalised and non-normalised data. You can see the 2 ...
3
votes
1
answer
239
views
Machine learning training, hyperparameter tuning and testing with 3 different models
I am trying to solve a multi-class classification involving prediction the outcome of a football match (target variable = Win, Lose or Draw). With a dataset of 2280 rows, which is 6 seasons of ...
3
votes
1
answer
356
views
Pandas replace rare values in a pipeline
A common preprocessing in machine learning consists in replacing rare values in the data by a label stating "rare". So that subsequent learning algorithms will not try to generalize a value ...
2
votes
0
answers
63
views
Sklearn Custom Imputer from prediction
I asked this question on Stackoverflow, but thought it might be a better fit here.
I'm playing around with the titanic dataset, and wanted to create a custom imputer to fill in missing ...
2
votes
1
answer
64
views
Re-write custom feature encoding function python
I have a question regarding code quality and best practices. My task - to write a feature encoding function that will encode categorical labels, boolean labels as one-hot encoding, timestamps for ...
6
votes
1
answer
202
views
Multithreaded HD Image Processing + Logistic reg. Classifier + Visualization
[I'm awaiting suggestions for improvement/optimization/more speed/general feedback ...]
This code takes a label and a folder path of subfolders as input that have certain labels ex: trees, cats with ...
2
votes
1
answer
68
views
Optimizing a TFxIDF vectorization - Python 3.x [closed]
I am attempting to train many classifiers to test their performance with classifying tweets as being from a political bot, or not (a binary 0 or 1 classifier).
My ...
2
votes
1
answer
132
views
K_nearest_neighbors from scratch [closed]
I wanted to create a script that will perform the k_nearest_neighbors algorithm on the well-known iris dataset. This was mainly for me to better understand the algorithm and process. I think it works, ...
4
votes
1
answer
130
views
Set of one-hot encoders in Python
In the absence of feature-complete and easy-to-use one-hot encoders in the Python ecosystem I've made a set of my own. This is intended to be a small library, so I want to make sure it's as clear and ...
4
votes
1
answer
305
views
Linear Regression on random data
Wrote a simple script to implement Linear regression and practice numpy/pandas. Uses random data, so obviously weights (thetas) have no significant meaning. Looking for feedback on
Performance
Python ...
5
votes
0
answers
213
views
Code for training machine learning linear regression and SVM
Ok , for my final year project I've wrote this piece of code to train my machine learning model on a this dataset , here the code i used
...
3
votes
0
answers
769
views
Sklearn custom transformer (label encoder and imputer)
I have a pandas.Dataframe with a single (new) record and the following function:
...
6
votes
3
answers
10k
views
Gradient descent for linear regression using numpy/pandas
I currently follow along Andrew Ng's Machine Learning Course on Coursera and wanted to implement the gradient descent algorithm in python3 using ...
5
votes
1
answer
4k
views
Calculate relationship between 2 categorical variables in a pandas Dataset with chi square test
I'm working on a Machine Learning project and I'm in Data Exploration step, and my dataset has both categorical and continuous attributes.
I decided to compute a chi square test between 2 categorical ...
1
vote
0
answers
4k
views
Using pandas and sklearn for forecasting stock market return
I have been using R for stock analysis and machine learning purpose but read somewhere that python is lot faster than R, so I am trying to learn Python for that.
I am using Yhat's rodeo IDE (Python ...