mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-26 17:49:09 +00:00
fixes
This commit is contained in:
parent
0198d6896b
commit
3894eb481c
BIN
data analysis/analysis/__pycache__/titanlearn.cpython-37.pyc
Normal file
BIN
data analysis/analysis/__pycache__/titanlearn.cpython-37.pyc
Normal file
Binary file not shown.
@ -33,13 +33,13 @@ __all__ = [
|
|||||||
|
|
||||||
import torch
|
import torch
|
||||||
import torch.optim as optim
|
import torch.optim as optim
|
||||||
from os import *
|
from os import system, name
|
||||||
|
|
||||||
def clear():
|
def clear():
|
||||||
if os.name == 'nt':
|
if name == 'nt':
|
||||||
_ = os.system('cls')
|
_ = system('cls')
|
||||||
else:
|
else:
|
||||||
_ = os.system('clear')
|
_ = system('clear')
|
||||||
|
|
||||||
def train(device, net, epochs, trainloader, optimizer, criterion):
|
def train(device, net, epochs, trainloader, optimizer, criterion):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user