Skip to content

Instantly share code, notes, and snippets.

View DimaK415's full-sized avatar

Dmitry Karpovich DimaK415

View GitHub Profile
print('Loading Libraries')
# Standard Libraries
import pandas as pd
import numpy as np
from datetime import datetime
# URL Parser
from urllib.parse import urlparse
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
//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