Skip to content

Instantly share code, notes, and snippets.

Kevin Jacobs kmjjacobs

  • Netherlands
Block or report user

Report or block kmjjacobs

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kmjjacobs
kmjjacobs / chainer_logistic_regression.py
Created Feb 24, 2018
Chainer - Complete Logistic Regression Model
View chainer_logistic_regression.py
# The goal of this Gist is to implement a simple (Logistic Regression) model such that most of the functionalities of Chainer are used
# @author K.M.J. Jacobs
# @date 2018-02-24
# @website https://www.data-blogger.com
import chainer
from chainer import reporter as reporter_module
from chainer.training.extensions import LogReport
from chainer import iterators
from chainer import training
@kmjjacobs
kmjjacobs / char_seq2seq.py
Last active Jul 13, 2019
A character-based Seq2Seq model
View char_seq2seq.py
# Code for https://www.data-blogger.com/2017/12/14/create-a-character-based-seq2seq-using-python-and-tensorflow/
# Imports
import tensorflow as tf
import pandas as pd
from nltk import word_tokenize
from collections import Counter
import numpy as np
# Load the data
@kmjjacobs
kmjjacobs / gru_tensorflow.py
Last active Nov 20, 2019
GRU (Gated Recurrent Unit) implementation in TensorFlow and used in a simple Machine Learning task. The corresponding tutorial is found on Data Blogger: https://www.data-blogger.com/2017/08/27/gru-implementation-tensorflow/.
View gru_tensorflow.py
#%% (0) Important libraries
import tensorflow as tf
import numpy as np
from numpy import random
import matplotlib.pyplot as plt
from IPython import display
% matplotlib inline
#%% (1) Dataset creation.
You can’t perform that action at this time.