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 os | |
import pickle | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
from sklearn.model_selection import KFold | |
from torch.utils.data import Dataset, DataLoader | |
from torch.utils.tensorboard import SummaryWriter | |
from torchsummary import summary |
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
from statemachine import StateMachine, State, Transition | |
# define states for a master (way of passing args to class) | |
options = [ | |
{"name": "IDLE", "initial": True, "value": "idle"}, # 0 | |
{"name": "A", "initial": False, "value": "a"}, # 1 | |
{"name": "B", "initial": False, "value": "b"}, # 2 | |
{"name": "C", "initial": False, "value": "c"}, # 3 | |
{"name": "F", "initial": False, "value": "f"}] # 4 |