This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WeatherLink is a sensor that detects particulate matter in the air | |
# see https://www.davisinstruments.com | |
# It is very useful for determining the air quality in your home or office | |
# The tutorial (https://weatherlink.github.io/v2-api/tutorial) is very good but insufficient | |
# The code I found online was mostly incomplete, to say the least | |
import numpy as np | |
import pandas as pd | |
import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# convert a mysql database to sqlite3 | |
# | |
#see https://stackoverflow.com/questions/5164033/ | |
# export-a-mysql-database-to-sqlite-database | |
mysql_host=localhost | |
mysql_user=george | |
#mysql_passwd=**************** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import sklearn | |
import sklearn.ensemble | |
class LabelDistributingBinaryForest: | |
def __init__(self, **kwargs): | |
self.clf = sklearn.ensemble.RandomForestClassifier(**kwargs) |