[refactor] move rbm.model → model.model
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
from rbm.matrix import Mat, np
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
|
||||
import math
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import os
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
from .entity import Entity
|
||||
from .train import train
|
||||
from .matrix import Mat, np
|
||||
from .status import Status
|
||||
from rbm.entity import Entity
|
||||
from rbm.train import train
|
||||
from rbm.matrix import Mat, np
|
||||
from rbm.status import Status
|
||||
|
||||
class Model(ABC):
|
||||
known_classes = [Entity]
|
||||
@@ -1,7 +1,7 @@
|
||||
import random
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np, read_armadillo
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import numpy
|
||||
import cv2
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from image.sub_image import SubImageExtract, normalize
|
||||
from rbm.matrix import Mat, np, convert
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import random
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from image.sub_image import normalize
|
||||
from rbm.matrix import Mat, np
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from label.label import Label
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
import matplotlib.pyplot as plt
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np, read_armadillo
|
||||
from rbm.train import train, Status
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from rbm.matrix import Mat, np
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from image.sub_image import normalize
|
||||
|
||||
WORK_DIR = "../../results"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from rbm.model import Model
|
||||
from model.model import Model
|
||||
from rbm.entity import Entity, EntityParams, TrainingParams
|
||||
from rbm.matrix import Mat, np, read_armadillo
|
||||
|
||||
|
||||
Reference in New Issue
Block a user