Skip to content

Instantly share code, notes, and snippets.

View ReiiSky's full-sized avatar
🏠
Working for my startup (Tripantero)

Satsuki Reikaa ReiiSky

🏠
Working for my startup (Tripantero)
  • Tripantero
  • Indonesia
View GitHub Profile
@ReiiSky
ReiiSky / Character.java
Created August 11, 2018 15:17 — forked from Zren/Character.java
RPG Mechanics (Exp/Stat/Equipment)
public class Character {
private Map<Stat, Integer> stats = new HashMap<Stat, Integer>();
private Map<Stat, Integer> statOffsets = new HashMap<Stat, Integer>();
private Job job;
private LevelCurve levelCurve;
private int level = 1;
private int experience = 0;
private final EquipmentInventory equipmentInventory = new EquipmentInventory();
public Character(Job job) {
@ReiiSky
ReiiSky / Configuration.inf
Created July 31, 2018 07:25 — forked from kilobaik/Configuration.inf
C++ Arrays, Solving System of Equations Algorithm.
Minor Algorithm:
Input : <Cell : Array, row, col : dimensions, x : line, y : column>
Output : <result : minor of the Array "Cell" at x, y >
Best Choice Algorithm:
Input : <Cell : Array, row, col : dimensions>
Output : <result : number of the line or the column witch has a lot of Zero Element>
@ReiiSky
ReiiSky / graphUndirected.py
Created June 19, 2018 15:33 — forked from anirudhjayaraman/graphUndirected.py
Implementing Undirected Graphs in Python
class Vertex:
def __init__(self, vertex):
self.name = vertex
self.neighbors = []
def add_neighbor(self, neighbor):
if isinstance(neighbor, Vertex):
if neighbor.name not in self.neighbors:
self.neighbors.append(neighbor.name)
neighbor.neighbors.append(self.name)
@ReiiSky
ReiiSky / CATCH_Keras_RL.md
Created June 15, 2018 12:15 — forked from EderSantana/CATCH_Keras_RL.md
Keras plays catch - a single file Reinforcement Learning example
@ReiiSky
ReiiSky / cart-pole-q-learning.md
Created June 15, 2018 11:54
Basic Q-Learning Algorithm

This is a basic implementation of a Q-Learning Agent. It performs moderately well, but does not solve the enviornment.

Hyperparameters are untuned for the most part. The agent could be made better if some time was put into tuning them.

@ReiiSky
ReiiSky / DynamicArray.java
Created June 15, 2018 07:19 — forked from snarkbait/DynamicArray.java
Dynamic Array example
import java.util.Arrays;
import java.util.Iterator;
import java.util.RandomAccess;
/**
* Dynamic Array class (based on java.util.ArrayList)
* for /r/JavaExamples - for tutorial purposes -
* @author /u/Philboyd_Studge on 11/18/2015.
*/
// Generates text based on an input string using the Markov Model outlined in Claude Shannon's seminal paper
// A Mathematical Theory of Communication. The basic idea is that the next character printed to the console follows
// a probability distributio given by the probability of that character following a string of length 'order' (kgram)
// in the input text. This kgram is the string of length order that was printed last.
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
@ReiiSky
ReiiSky / rl-tutorial-1.ipynb
Created June 13, 2018 09:38 — forked from awjuliani/rl-tutorial-1.ipynb
Reinforcement Learning Tutorial 1 (Two-armed bandit problem)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
*
*/
package pt.mleiria.machinelearning.regression;
/**
* @author manuel
*
*/
public class LinearRegression {
@ReiiSky
ReiiSky / CNNImplementation.java
Created May 30, 2018 14:50 — forked from sanaulla123/CNNImplementation.java
CNN Algorithm Implementation for Iris Data set in Java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
import java.net.URL;