Skip to content

Instantly share code, notes, and snippets.

@valduze
valduze / hello-world.py
Created April 16, 2016 20:23 — forked from alejandrofloresm/hello-world.py
Hello World for Google
# Code example for:
# Hello World - Machine Learning Recipes #1 - Google Developers
# https://www.youtube.com/watch?v=cKxRvEZd3Mw
from sklearn import tree
# Bumpy = 0, Smooth = 1
features = [[140, 1], [130, 1], [150, 0], [170, 0]]
# Apple = 0, Orange = 1
labels = [0, 0, 1, 1]
/*
* File: my_sql_header.h
*
* This was written by Matthew Bennett
* (abishur on the raspberry pi forums - http://www.raspberrypi.org/phpBB3/)
*/
#include <stdio.h>
#include <stdlib.h>
#include <iostream>