This file contains hidden or 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
def custom_train(cfg, tub_names, model_name): | |
''' | |
use the specified data in tub_names to train an artifical neural network | |
saves the output trained model as model_name | |
''' | |
import sklearn | |
from sklearn.model_selection import train_test_split | |
from sklearn.utils import shuffle | |
import random | |
from PIL import Image |
This file contains hidden or 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
def custom_train(cfg, tub_names, model_name): | |
''' | |
use the specified data in tub_names to train an artifical neural network | |
saves the output trained model as model_name | |
''' | |
import sklearn | |
from sklearn.model_selection import train_test_split | |
from sklearn.utils import shuffle | |
import random | |
from PIL import Image |