Skip to content

Instantly share code, notes, and snippets.

View erantone's full-sized avatar

Eric erantone

View GitHub Profile
@erantone
erantone / linear_regression.jl
Created December 10, 2015 15:45
Linear Regression implementation with Gradient descent and linear and polynomial hypotheses
# - Linear Regression implementation with Gradient descent and linear and polynomial hypotheses (in Julia)
# Copyright (C) 2015 Eric Aislan Antonelo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
######################################
using Gadfly
@erantone
erantone / logistic_regression.jl
Created December 10, 2015 15:39
Logistic regression (linear separable classes)
# - Logistic regression implementation
# - Linear hypothesis and linearly separable classes
# Copyright (C) 2015 Eric Aislan Antonelo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#############################
@erantone
erantone / expectation_maximization.jl
Created December 10, 2015 15:35
Expectation-Maximization Implementation based on the book "Machine Learning" by Tom M. Mitchell
# - Expectation-Maximization Implementation based on the book "Machine Learning" by Tom M. Mitchell
# - Find the mean of One Gaussian; and of a mixture of Two Gaussians
# Copyright (C) 2015 Eric Aislan Antonelo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
using Gadfly
@erantone
erantone / backprop.jl
Created December 10, 2015 15:29
Batch and Stochastic Backpropagation implemented in Julia for XOR problem
# - Batch and Stochastic Backpropagation Implementation in Julia based on the book "Pattern Classification" by Richard Duda
# - Neural network with 1 hidden layer applied to XOR classification problem
# Copyright (C) 2015 Eric Aislan Antonelo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
using Gadfly
@erantone
erantone / naivebayes_sentiment_analysis.py
Last active December 10, 2015 15:23
Naive Bayes implementation based on the book Machine Learning by Tom M. Mitchell (sentiment analysis)
# - Naive Bayes implementation based on the book Machine Learning by Tom M. Mitchell
# - Application to the task of sentinment analysis with text classification using the movie_reviews database from nltk.corpus
# Copyright (C) 2015 Eric Aislan Antonelo
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
from nltk.corpus import movie_reviews