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
print('Loading Libraries') | |
# Standard Libraries | |
import pandas as pd | |
import numpy as np | |
from datetime import datetime | |
# URL Parser | |
from urllib.parse import urlparse |
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
class EstimatorSelectionHelper: | |
def __init__(self, models, params, cv): | |
if not set(models.keys()).issubset(set(params.keys())): | |
missing_params = list(set(models.keys()) - set(params.keys())) | |
raise ValueError("Some estimators are missing parameters: %s" % missing_params) | |
self.models = models | |
self.params = params | |
self.keys = models.keys() | |
self.grid_searches = {} | |
self.cv = cv |
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
//Libraries | |
#include <AltSoftSerial.h> | |
#include <Sabertooth.h> | |
#include <PID_v1.h> | |
//Constants | |
//SoftwareSerial SWSerial(NOT_A_PIN, 8); // RX on no pin (unused), TX on pin 8 (to S1) | |
AltSoftSerial altSerial; | |
Sabertooth ST(128, altSerial); // Address 128, and use SWSerial as the serial port. | |
#define leftPot A0 // pin A0 is Left Pot Input |