Code Monkey home page Code Monkey logo

machine_learning_algos's Introduction

Machine_Learning_Algos

1. Adaboost

--> Initialize AdaBoost class, pass number of desired weak learners as the argument: Let us say we want 30 classifiers

adaboost = AdaBoost(T = 30)

--> To TRAIN the model pass training data and labels to the ababoost_train function.

Shape: X_tr -> (no. of data points, no of features) eg. (7000, 50) Y_tr -> (no. of data points, 1) eg. (7000, 1)

model = adaboost.adaboost_train(X_tr, Y_tr)

--> To get new prediciton. Run this to perform prediction on the model after training. This function can be used for: X_train, X_val or X_test Input shape: (no. of data points, no of features) eg. (7000, 50)

predictions = adaboost.adaboost_predict(X_tr)

--> To save trained model:

adaboost.save_model()

--> To load a saved model:

adaboost.load_model(model_path):

2. Independent Component Analysis (ICA) Can be used to seperate mixed signals (audio) into seperate signals. Load the signls and stack them row-wise. Eg. load 4 wav files using librosa, stack. The matrix will be of size (4, sampling_rate * audio_len(time)). Then pass the matrix through the function. The output will also have 4 rows. Each row is a seperated signal (audio). Can be saved as audio file using librosa.

machine_learning_algos's People

Contributors

parthmehta15 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.