mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
depreciated files, titanlearn v 2.0.0.001
This commit is contained in:
parent
68006de8c0
commit
2590a40827
@ -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):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user