Skip to content

Instantly share code, notes, and snippets.

View JensMeiners's full-sized avatar

Jens Meiners JensMeiners

View GitHub Profile
@JensMeiners
JensMeiners / plot_decision_boundry.py
Last active February 9, 2016 14:33
For a model that generates a prediction probability, this script plots the respective descision line with colour coding the classes and assigning labels to gradient steps
'''
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, Version 2, as published by Sam Hocevar. See
http://www.wtfpl.net/ for more details.
'''
import numpy as np
import matplotlib.pyplot as plt
@JensMeiners
JensMeiners / EvalLevel.java
Last active March 3, 2016 06:40
Evaluation Logger for log4j 1.7.10
package de.dailab.newsreel.recommender.common.util;
import org.apache.log4j.Level;
/**
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
@JensMeiners
JensMeiners / readme.md
Created March 15, 2016 10:18
Markdown Cheatsheet

Headline

  • itemize
  • one
  • nested
@JensMeiners
JensMeiners / config.xml
Last active May 2, 2016 12:11
Simple Spring Setup
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="crawler" class="de.berlin.tu.Crawler">
<property name="indexServer" value="somewhereimportant.tu-berlin.de"></property>
<property name="indexPort" value="9999"></property>
</bean>