Skip to content

Instantly share code, notes, and snippets.

View sherbold's full-sized avatar

Steffen Herbold sherbold

View GitHub Profile
@sherbold
sherbold / test_DecisionTree_Default_Scikit.py
Created August 23, 2018 10:21
scikit-learn smoke and morph test examples
import unittest
import xmlrunner
import pandas as pd
import numpy as np
import threading
import functools
from scipy.io.arff import loadarff
from sklearn.preprocessing import LabelEncoder
from sklearn.tree import DecisionTreeClassifier
package de.ugoe.cs.smartshark.util;
import java.util.List;
import org.apache.spark.sql.DataFrame;
/**
* <p>
* Interface for data loader for SmartSHARK from the underlying DB. All jobs should use this interface, instead
* of directly accessing the database, even if the endpoint and credentials of the DB are known.
* </p>