depreciated files, titanlearn v 2.0.0.001

This commit is contained in:
art 2019-10-29 10:04:56 -05:00
parent 68006de8c0
commit 2590a40827
86 changed files with 11 additions and 1 deletions

View File

@ -7,10 +7,12 @@
# this module learns from its mistakes far faster than 2022's captains # this module learns from its mistakes far faster than 2022's captains
# setup: # setup:
__version__ = "2.0.0.000" __version__ = "2.0.0.001"
#changelog should be viewed using print(analysis.__changelog__) #changelog should be viewed using print(analysis.__changelog__)
__changelog__ = """changelog: __changelog__ = """changelog:
2.0.0.001:
- added clear functions
2.0.0.000: 2.0.0.000:
- complete rewrite planned - complete rewrite planned
- depreciated 1.0.0.xxx versions - depreciated 1.0.0.xxx versions
@ -25,11 +27,19 @@ __author__ = (
) )
__all__ = [ __all__ = [
'clear',
'train', 'train',
] ]
import torch import torch
import torch.optim as optim import torch.optim as optim
from os import *
def clear():
if os.name == 'nt':
_ = os.system('cls')
else:
_ = os.system('clear')
def train(device, net, epochs, trainloader, optimizer, criterion): def train(device, net, epochs, trainloader, optimizer, criterion):