Skip to content

Instantly share code, notes, and snippets.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<properties>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<repositories>
</repositories>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany.app</groupId>
@kvalv
kvalv / .py
Created November 8, 2017 17:08
.py
import ipdb # noqa
import matplotlib
import numpy as np
import color
import tsp
import matplotlib.pyplot as plt
from tqdm import tqdm
plt.ion()
network_dimensions: [11, 47, 6],
hidden_activation_function: relu,
output_activation_function: softmax,
loss_function: log,
learning_rate: 0.01,
initial_weight_range: [-0.1, 0.1],
data_source: data/wine/,
case_fraction: 1.0,
validation_fraction: 0.1,
test_fraction: 0.1,
network_dimensions: [784, 100, 50, 10]
hidden_activation_function: sigmoid
output_activation_function: softmax
loss_function: mse
learning_rate: 0.01
initial_weight_range: [-0.08, 0.08]
data_source: data/mnist/
case_fraction: 1.0
validation_fraction: 0.1
test_fraction: 0.1
network_dimensions: [8, 100, 100, 100, 40, 10]
hidden_activation_function: tanh
output_activation_function: identity
loss_function: mse
learning_rate: 0.01
initial_weight_range: [-0.08, 0.08]
data_source: data/yeast/
case_fraction: 1.0
validation_fraction: 0.1
test_fraction: 0.1
@kvalv
kvalv / .py
Created September 20, 2017 16:30
import numpy as np
import seaborn as sns
from parse import state_to_occupancy
from graphics import Rectangle, Point
import time
def gen_rectangle(o, x, y, l, color='black', dx=100, dy=100):
p1 = Point(x*dx, y*dy)
if o == 0: # horizontal
/*
* steeringEncoder.c
*
* Created: 02.02.2016 22:40:47
* Author: Daniel
*/
#include "steeringEncoder.h"
#include <avr/io.h>
#include <avr/interrupt.h>
@kvalv
kvalv / .h
Created April 26, 2016 15:35
/*
* damper_position_calculation.h
*
* Created: 23.03.2016 14:56:44
* Author: Daniel
*/
#ifndef DAMPER_POSITION_CALCULATION_H_
#define DAMPER_POSITION_CALCULATION_H_
/*
* damper_position_calculation.c
*
* Created: 23.03.2016 14:56:20
* Author: Daniel
*/
#include <string.h>
#include "damper_position_calculation.h"
#include "../../ADC1118/ads1118.h"
/*
* timer.c
*
* Created: 17.04.2016 14:28:20
* Author: mikaelpc
*/
#include <avr/interrupt.h>
#include <stdlib.h>
#include "timer.h"