mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-13 22:56:18 +00:00
Update analysis.py
This commit is contained in:
parent
99fee36f20
commit
28a30a24c6
@ -64,7 +64,7 @@ def _init_device (setting, arg): #initiates computation device for ANNs
|
|||||||
the_device_woman = torch.device("cpu")
|
the_device_woman = torch.device("cpu")
|
||||||
return the_device_woman #name that reference
|
return the_device_woman #name that reference
|
||||||
else:
|
else:
|
||||||
return "error:specified device does not exist"
|
return "error: specified device does not exist"
|
||||||
|
|
||||||
class c_entities:
|
class c_entities:
|
||||||
|
|
||||||
@ -612,7 +612,6 @@ def generate_data(filename, x, y, low, high):
|
|||||||
temp = temp + str(random.uniform(low, high))
|
temp = temp + str(random.uniform(low, high))
|
||||||
file.write(temp + "\n")
|
file.write(temp + "\n")
|
||||||
|
|
||||||
|
|
||||||
#statistics def below------------------------------------------------------------------------------------------------------------------------------------------------------
|
#statistics def below------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
class StatisticsError(ValueError):
|
class StatisticsError(ValueError):
|
||||||
|
Loading…
Reference in New Issue
Block a user