Skip to main content

All Questions

25votes
1answer
1kviews

Backpropagation in simple Neural Network

I've been working on a simple neural network implemented in python. Currently, it seems to be learning, but unfortunately it doesn't seem to be learning effectively. The graph below shows the output ...
penalosa's user avatar
8votes
2answers
501views

Univariate linear regression from scratch in Python

I am relatively new to machine learning and I believe one of the best ways for me to get the intuition behind most algorithms is to write them from scratch before using tons of external libraries. ...
maufcost's user avatar
8votes
1answer
343views

Implementation of a new algorithm for sklearn

In the Python library, sklearn is implemented the algorithm for SparsePCA. I have written the code for a another version of this algorithm that is much faster in some situations. I have not enough ...
Donbeo's user avatar
7votes
1answer
6kviews

k-means clustering algorithm implementation

Here is my personal implementation of the clustering k-means algorithm. ...
Daniyal Shahrokhian's user avatar
6votes
3answers
10kviews

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 ...
Hericks's user avatar
6votes
1answer
189views

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 ...
watch-this's user avatar
5votes
1answer
6kviews

k-means using numpy

This is k-means implementation using Python (numpy). I believe there is room for improvement when it comes to computing distances (given I'm using a list comprehension, maybe I could also pack it in a ...
Adel Redjimi's user avatar
5votes
2answers
713views

Defensive programming type-checking

I have issues with dynamically typed languages, and I tend to worry about type a lot. Numpy has different behaviour depending on if something is a matrix or a plain ndarray, or a list. I didn't ...
Frames Catherine White's user avatar
4votes
1answer
119views

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 ...
Felix's user avatar
4votes
1answer
300views

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 ...
Vivek Jha's user avatar
3votes
1answer
1kviews

Latent Dirichlet Allocation in Python

I've recently finished writing a "simple-as-possible" LDA code in Python. The theory from which I've developed my code can be found in the book Computer Vision by Simon Prince, free (courtesy of ...
Fred's user avatar
3votes
2answers
121views

Inefficient Regularized Logistic Regression with Numpy

I am a machine learning noob attempting to implement regularized logistic regression via Newton's method. The example data have two features which are to be expanded to 28 through finding all ...
user avatar
3votes
0answers
1kviews

Implementing the stochastic gradient descent algorithm of the softmax regression with only NumPy [closed]

I am implementing the stochastic gradient descent algorithm. I think there is plenty of room for improvement. ...
Lerner Zhang's user avatar
2votes
1answer
120views

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, ...
Keagan McNew's user avatar
2votes
1answer
24kviews

ID3 Decision Tree in python [closed]

I've been working my way through Pedro Domingos' machine learning course videos (although the course is not currently active). His first homework assignment starts with coding up a decision tree (ID3)....
Jabbermonkey's user avatar

153050per page
close