mirror of
https://github.com/illiumst/marl-factory-grid.git
synced 2025-06-18 18:52:52 +02:00
Resolved some warnings and style issues
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import torch
|
||||
import numpy as np
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
import yaml
|
||||
|
||||
|
||||
def load_class(classname):
|
||||
from importlib import import_module
|
||||
@ -42,7 +43,6 @@ def get_class(arguments):
|
||||
|
||||
|
||||
def get_arguments(arguments):
|
||||
from importlib import import_module
|
||||
d = dict(arguments)
|
||||
if "classname" in d:
|
||||
del d["classname"]
|
||||
@ -82,4 +82,4 @@ class Checkpointer(object):
|
||||
for name, model in to_save:
|
||||
self.save_experiment(name, model)
|
||||
self.__current_checkpoint += 1
|
||||
self.__current_step += 1
|
||||
self.__current_step += 1
|
||||
|
Reference in New Issue
Block a user