2020-09-08 16:21:05 -05:00
2020-04-23 18:32:32 -05:00
2020-07-25 11:36:48 -05:00
2020-07-23 18:42:45 -05:00
2020-05-09 15:43:40 -05:00
2020-01-13 08:48:05 -06:00
2020-05-14 13:28:10 -05:00
2020-02-08 18:53:10 -06:00
2020-04-24 12:14:57 -05:00
2020-01-13 09:03:58 -06:00
2020-02-14 14:20:35 -06:00
2020-04-20 09:56:44 -05:00
2020-09-06 10:03:26 -05:00
2020-04-27 16:57:46 -05:00
2020-07-16 15:44:17 -05:00
2020-05-09 15:57:20 -05:00
2020-09-08 16:21:05 -05:00
2020-05-09 16:24:50 -05:00
2020-07-23 18:45:21 -05:00
2020-05-21 07:40:09 -05:00
2020-07-15 20:01:49 -05:00
2020-09-08 12:58:17 -05:00
2020-09-08 15:37:25 -05:00
2020-09-08 14:47:50 -05:00

Machine Learning Things

Generic badge License Generic badge Generic badge

Machine Learning Things (ml_things) is a lightweight python library that contains functions and code snippets that I use in my everyday research with Machine Learning, Deep Learning, NLP.

I created this repo because I was tired of always looking up same code from older projects and I wanted to gain some experience in building a Python library. By making this available to everyone it gives me easy access to code I use frequently and it can help others in their machine learning work. If you find any bugs or something doesn't make sense please feel free to open an issue.

This library also contains Python code snippets that can speed up Machine Learning workflow.

Installation

This repo is tested with Python 3.6+.

It's always good practice to install ml_things in a virtual environment. If you guidance on using Python's virtual environments you can check out the user guide here.

You can install ml_things with pip from GitHub:

pip install git+https://github.com/gmihaila/ml_things

Functions

pad_array [source]

def pad_array(variable_length_array, fixed_length=None, axis=1)
Parameters: variable_length_array : array
Single arrays [1,2,3] or nested arrays 1,2],[3.

fixed_length : int
Max length of rows for numpy.

axis : int
Directions along rows: 1 or columns: 0.
Returns: numpy_array :
axis=1: fixed numpy array shape [len of array, fixed_length].
axis=0: fixed numpy array shape [fixed_length, len of array].

Example:

>>> from ml_things import pad_array
>>> pad_array(variable_length_array=[[1,2],[3],[4,5,6]], fixed_length=5)
array([[1., 2., 0., 0., 0.],
       [3., 0., 0., 0., 0.],
       [4., 5., 6., 0., 0.]])
Languages
Jupyter Notebook 99.5%
Python 0.5%