numpy-ml
numpy-ml copied to clipboard
Machine learning, in numpy
@ddbourgin Have an issue where updates to gradients cannot be performed since shapes conflict during backprop... specifically in the optimizer file. Error reads: ``` C[param_name]["mean"] = d1 * mean +...
update forks
G'day, how's it going? I've just started looking into machine learning stuff, and stumbled upon this, looks awesome! I just want to know what kind of methods I should use...
**System information** - OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04 - Python version: 3.7.12 - NumPy version: 1.21.5 (environment is Google Colab on 20-Mar, 2022.) **Describe the...
This submission addresses the issue tracked in https://github.com/ddbourgin/numpy-ml/issues/69 We have implemented a soft and hard version of kmeans clustering. The works done can be summarized as follows: 1. [Hard kmeans...
### All Submissions * [Yes] Is the code you are submitting your own work? * [Yes] Have you followed the [contributing guidelines](https://github.com/ddbourgin/numpy-ml/CONTRIBUTING.md)? * [Yes] Have you checked to ensure there...
There is no clustering apart from the EM for Gaussian mixtures already in the project. Hence, I would like to implement a kmeans algorithm both the hard clustering version which...
data = pd.read_csv('Data/Bankloan.csv', sep=';') for i in ['debtinc', 'creddebt', 'othdebt']: data[i] = data[i].str.replace(',', '.').astype('float') train, test, y_train, y_test = train_test_split(data.drop('default', axis=1), data['default'], test_size=0.3, stratify=data['default'], random_state=42) X_train = pd.get_dummies(train) X_test =...
### All Submissions * [ ] Is the code you are submitting your own work? * [ ] Have you followed the [contributing guidelines](https://github.com/ddbourgin/numpy-ml/CONTRIBUTING.md)? * [ ] Have you checked...
From this link: https://stackoverflow.com/questions/56085669/convolutional-layer-in-python-using-numpy and https://numpy.org/doc/stable/reference/generated/numpy.tensordot.html `Z = np.tensordot(X_pad, weights, axes=3) + self.bias` Does this function is more relevant that using im2col?