chore: rename y_arch to y
This commit is contained in:
		@@ -2,12 +2,12 @@ import prototorch as pt
 | 
				
			|||||||
import pytorch_lightning as pl
 | 
					import pytorch_lightning as pl
 | 
				
			||||||
import torchmetrics
 | 
					import torchmetrics
 | 
				
			||||||
from prototorch.core import SMCI
 | 
					from prototorch.core import SMCI
 | 
				
			||||||
from prototorch.y_arch.callbacks import (
 | 
					from prototorch.y.callbacks import (
 | 
				
			||||||
    LogTorchmetricCallback,
 | 
					    LogTorchmetricCallback,
 | 
				
			||||||
    PlotLambdaMatrixToTensorboard,
 | 
					    PlotLambdaMatrixToTensorboard,
 | 
				
			||||||
    VisGMLVQ2D,
 | 
					    VisGMLVQ2D,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from prototorch.y_arch.library.gmlvq import GMLVQ
 | 
					from prototorch.y.library.gmlvq import GMLVQ
 | 
				
			||||||
from pytorch_lightning.callbacks import EarlyStopping
 | 
					from pytorch_lightning.callbacks import EarlyStopping
 | 
				
			||||||
from torch.utils.data import DataLoader
 | 
					from torch.utils.data import DataLoader
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -10,7 +10,7 @@ from prototorch.core.initializers import (
 | 
				
			|||||||
    EyeLinearTransformInitializer,
 | 
					    EyeLinearTransformInitializer,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from prototorch.nn.wrappers import LambdaLayer
 | 
					from prototorch.nn.wrappers import LambdaLayer
 | 
				
			||||||
from prototorch.y_arch.architectures.base import BaseYArchitecture
 | 
					from prototorch.y.architectures.base import BaseYArchitecture
 | 
				
			||||||
from torch import Tensor
 | 
					from torch import Tensor
 | 
				
			||||||
from torch.nn.parameter import Parameter
 | 
					from torch.nn.parameter import Parameter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
from dataclasses import dataclass
 | 
					from dataclasses import dataclass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from prototorch.core.competitions import WTAC
 | 
					from prototorch.core.competitions import WTAC
 | 
				
			||||||
from prototorch.y_arch.architectures.base import BaseYArchitecture
 | 
					from prototorch.y.architectures.base import BaseYArchitecture
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class WTACompetitionMixin(BaseYArchitecture):
 | 
					class WTACompetitionMixin(BaseYArchitecture):
 | 
				
			||||||
@@ -5,7 +5,7 @@ from prototorch.core.initializers import (
 | 
				
			|||||||
    AbstractComponentsInitializer,
 | 
					    AbstractComponentsInitializer,
 | 
				
			||||||
    LabelsInitializer,
 | 
					    LabelsInitializer,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from prototorch.y_arch import BaseYArchitecture
 | 
					from prototorch.y import BaseYArchitecture
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SupervisedArchitecture(BaseYArchitecture):
 | 
					class SupervisedArchitecture(BaseYArchitecture):
 | 
				
			||||||
@@ -1,7 +1,7 @@
 | 
				
			|||||||
from dataclasses import dataclass, field
 | 
					from dataclasses import dataclass, field
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from prototorch.core.losses import GLVQLoss
 | 
					from prototorch.core.losses import GLVQLoss
 | 
				
			||||||
from prototorch.y_arch.architectures.base import BaseYArchitecture
 | 
					from prototorch.y.architectures.base import BaseYArchitecture
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class GLVQLossMixin(BaseYArchitecture):
 | 
					class GLVQLossMixin(BaseYArchitecture):
 | 
				
			||||||
@@ -2,7 +2,7 @@ from dataclasses import dataclass, field
 | 
				
			|||||||
from typing import Type
 | 
					from typing import Type
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import torch
 | 
					import torch
 | 
				
			||||||
from prototorch.y_arch import BaseYArchitecture
 | 
					from prototorch.y import BaseYArchitecture
 | 
				
			||||||
from torch.nn.parameter import Parameter
 | 
					from torch.nn.parameter import Parameter
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -8,8 +8,8 @@ import torchmetrics
 | 
				
			|||||||
from matplotlib import pyplot as plt
 | 
					from matplotlib import pyplot as plt
 | 
				
			||||||
from prototorch.models.vis import Vis2DAbstract
 | 
					from prototorch.models.vis import Vis2DAbstract
 | 
				
			||||||
from prototorch.utils.utils import mesh2d
 | 
					from prototorch.utils.utils import mesh2d
 | 
				
			||||||
from prototorch.y_arch.architectures.base import BaseYArchitecture
 | 
					from prototorch.y.architectures.base import BaseYArchitecture
 | 
				
			||||||
from prototorch.y_arch.library.gmlvq import GMLVQ
 | 
					from prototorch.y.library.gmlvq import GMLVQ
 | 
				
			||||||
from pytorch_lightning.loggers import TensorBoardLogger
 | 
					from pytorch_lightning.loggers import TensorBoardLogger
 | 
				
			||||||
 | 
					
 | 
				
			||||||
DIVERGING_COLOR_MAPS = [
 | 
					DIVERGING_COLOR_MAPS = [
 | 
				
			||||||
@@ -1,12 +1,12 @@
 | 
				
			|||||||
from dataclasses import dataclass
 | 
					from dataclasses import dataclass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from prototorch.y_arch import (
 | 
					from prototorch.y import (
 | 
				
			||||||
    SimpleComparisonMixin,
 | 
					    SimpleComparisonMixin,
 | 
				
			||||||
    SingleLearningRateMixin,
 | 
					    SingleLearningRateMixin,
 | 
				
			||||||
    SupervisedArchitecture,
 | 
					    SupervisedArchitecture,
 | 
				
			||||||
    WTACompetitionMixin,
 | 
					    WTACompetitionMixin,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from prototorch.y_arch.architectures.loss import GLVQLossMixin
 | 
					from prototorch.y.architectures.loss import GLVQLossMixin
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class GLVQ(
 | 
					class GLVQ(
 | 
				
			||||||
@@ -5,7 +5,7 @@ from typing import Callable
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
import torch
 | 
					import torch
 | 
				
			||||||
from prototorch.core.distances import omega_distance
 | 
					from prototorch.core.distances import omega_distance
 | 
				
			||||||
from prototorch.y_arch import (
 | 
					from prototorch.y import (
 | 
				
			||||||
    GLVQLossMixin,
 | 
					    GLVQLossMixin,
 | 
				
			||||||
    MultipleLearningRateMixin,
 | 
					    MultipleLearningRateMixin,
 | 
				
			||||||
    OmegaComparisonMixin,
 | 
					    OmegaComparisonMixin,
 | 
				
			||||||
		Reference in New Issue
	
	Block a user