PyDLLib 1.0.2__tar.gz → 1.0.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Conv2D.py +6 -4
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/GaussianProcesses/_GaussianProcessClassifier.py +2 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/GaussianProcesses/_GaussianProcessRegressor.py +2 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Kernels.py +13 -13
- {pydllib-1.0.2 → pydllib-1.0.3}/PKG-INFO +1 -1
- {pydllib-1.0.2 → pydllib-1.0.3}/PyDLLib.egg-info/PKG-INFO +1 -1
- {pydllib-1.0.2 → pydllib-1.0.3}/pyproject.toml +1 -1
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Data/Metrics.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Data/Preprocessing.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Data/_DataReader.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Data/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Callbacks/_BackUp.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Callbacks/_BaseCallback.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Callbacks/_EarlyStopping.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Callbacks/_ReduceLROnPlateau.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Callbacks/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Initialisers/_Initialiser.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Initialisers/_Kaiming_He.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Initialisers/_Xavier_Glorot.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Initialisers/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/_Activation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/_ReLU.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/_Sigmoid.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/_SoftMax.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/_Tanh.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Activations/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_BaseRegularisation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_BatchNormalisation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_Dropout.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_GroupNormalisation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_InstanceNormalisation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_LayerNormalisation.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Add.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Attention.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_BaseLayer.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Bidirectional.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Dense.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_DenseKAN.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Flatten.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Identity.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Input.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_LSTM.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_LayerList.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_MaxPooling2D.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_RNN.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/_Reshape.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_BCE.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_BaseLoss.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_CCE.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_Exponential.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_Huber.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_MAE.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/_MSE.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Losses/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Model.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_ADADELTA.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_ADAGRAD.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_ADAM.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_BaseOptimiser.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_LBFGS.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_RMSPROP.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/_SGD.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Optimisers/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Exceptions/_Exceptions.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/Exceptions/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Calibration/_CalibratedClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Calibration/_IsotonicRegression.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Calibration/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/GaussianProcesses/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/TimeSeries.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_Elasticnet.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_LassoRegression.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_LinearRegression.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_LogisticRegression.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_RANSAC.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_RidgeRegression.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/NaiveBayes/_BernoulliNaiveBayes.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/NaiveBayes/_GaussianNaiveBayes.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/NaiveBayes/_MultinomialNaiveBayes.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/NaiveBayes/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Neighbors/_KNearestNeighborsClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Neighbors/_KNearestNeighborsRegressor.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Neighbors/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/SupportVectorMachines/_SVC.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/SupportVectorMachines/_SVR.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/SupportVectorMachines/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_AdaBoostClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_AdaBoostRegressor.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_DecisionTree.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_GradientBoostingClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_GradientBoostingRegressor.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_LGBMClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_LGBMRegressor.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_LGBMTree.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RandomForest.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RegressionForest.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RegressionTree.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostClassifier.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostRegressor.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostTree.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_DBScan.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_GaussianMixtureModels.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_KMeans.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_SpectralClustering.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_LDA.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_PCA.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_QDA.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_RobustPCA.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_TSNE.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/_UMAP.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/DimensionalityReduction/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/OutlierDetection/_IsolationForest.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/OutlierDetection/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/DLL/__init__.py +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/LICENSE +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/PyDLLib.egg-info/SOURCES.txt +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/PyDLLib.egg-info/dependency_links.txt +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/PyDLLib.egg-info/requires.txt +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/PyDLLib.egg-info/top_level.txt +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/README.md +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/requirements.txt +0 -0
- {pydllib-1.0.2 → pydllib-1.0.3}/setup.cfg +0 -0
|
@@ -46,12 +46,13 @@ class Conv2D(BaseLayer):
|
|
|
46
46
|
self.input_depth = input_depth
|
|
47
47
|
self.output_shape = (self.output_depth, input_height - self.kernel_size + 1, input_width - self.kernel_size + 1)
|
|
48
48
|
self.kernels_shape = (self.output_depth, input_depth, self.kernel_size, self.kernel_size)
|
|
49
|
-
self.nparams = np.prod(self.kernels_shape) +
|
|
49
|
+
self.nparams = np.prod(self.kernels_shape) + self.output_depth
|
|
50
50
|
|
|
51
51
|
super().initialise_layer(input_shape, data_type, device)
|
|
52
52
|
|
|
53
53
|
self.kernels = self.initialiser.initialise(self.kernels_shape, data_type=self.data_type, device=self.device)
|
|
54
|
-
self.biases = torch.zeros(self.output_shape)
|
|
54
|
+
# self.biases = torch.zeros(self.output_shape)
|
|
55
|
+
self.biases = torch.zeros((self.output_depth,), dtype=self.data_type, device=self.device)
|
|
55
56
|
|
|
56
57
|
if self.activation:
|
|
57
58
|
self.activation.initialise_layer(self.output_shape, self.data_type, self.device)
|
|
@@ -87,11 +88,12 @@ class Conv2D(BaseLayer):
|
|
|
87
88
|
|
|
88
89
|
batch_size = input.shape[0]
|
|
89
90
|
self.input = input
|
|
90
|
-
self.output =
|
|
91
|
+
self.output = torch.zeros((batch_size, *self.output_shape), dtype=self.data_type, device=self.device)
|
|
91
92
|
for i in range(self.output_depth):
|
|
92
93
|
for j in range(self.input_depth):
|
|
93
94
|
conv_output = F.conv2d(input[:, j:j+1, :, :], self.kernels[i:i+1, j:j+1, :, :], padding="valid")
|
|
94
95
|
self.output[:, i, :, :] += conv_output[:, 0, :, :]
|
|
96
|
+
self.output += self.biases.view(1, -1, 1, 1)
|
|
95
97
|
|
|
96
98
|
if self.normalisation: self.output = self.normalisation.forward(self.output, training=training)
|
|
97
99
|
if self.activation: self.output = self.activation.forward(self.output)
|
|
@@ -122,7 +124,7 @@ class Conv2D(BaseLayer):
|
|
|
122
124
|
kernel_gradient[i, j] = F.conv2d(self.input[:, j:j+1, :, :], dCdy[:, i:i+1, :, :], padding="valid")[0, 0, :, :]
|
|
123
125
|
dCdx[:, j] += F.conv2d(dCdy[:, i:i+1, :, :], torch.flip(self.kernels[i:i+1, j:j+1, :, :], dims=(2, 3)), padding=[self.kernel_size - 1, self.kernel_size - 1])[0, 0, :, :]
|
|
124
126
|
|
|
125
|
-
self.biases.grad += dCdy.mean(dim=0)
|
|
127
|
+
self.biases.grad += dCdy.mean(dim=(0, 2, 3))
|
|
126
128
|
self.kernels.grad += kernel_gradient / batch_size
|
|
127
129
|
return dCdx
|
|
128
130
|
|
|
@@ -228,6 +228,8 @@ class GaussianProcessClassifier:
|
|
|
228
228
|
history = {"log marginal likelihood": torch.zeros(floor(epochs / callback_frequency))}
|
|
229
229
|
|
|
230
230
|
for epoch in range(epochs):
|
|
231
|
+
optimiser.zero_grad()
|
|
232
|
+
|
|
231
233
|
# calculate the derivatives
|
|
232
234
|
self.covariance_function.update(self._derivative, self.X)
|
|
233
235
|
|
|
@@ -157,6 +157,8 @@ class GaussianProcessRegressor:
|
|
|
157
157
|
history = {"log marginal likelihood": torch.zeros(floor(epochs / callback_frequency))}
|
|
158
158
|
|
|
159
159
|
for epoch in range(epochs):
|
|
160
|
+
optimiser.zero_grad()
|
|
161
|
+
|
|
160
162
|
# calculate the derivatives
|
|
161
163
|
self.covariance_function.update(self._derivative, self.X)
|
|
162
164
|
|
|
@@ -185,8 +185,8 @@ class RBF(_Base):
|
|
|
185
185
|
derivative_covariance_sigma = self.derivative_sigma(X, X)
|
|
186
186
|
derivative_covariance_corr_len = self.derivative_corr_len(X, X)
|
|
187
187
|
|
|
188
|
-
self.sigma.grad
|
|
189
|
-
self.correlation_length.grad
|
|
188
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
189
|
+
self.correlation_length.grad += derivative_function(derivative_covariance_corr_len).to(dtype=self.correlation_length.dtype)
|
|
190
190
|
|
|
191
191
|
def parameters(self):
|
|
192
192
|
"""
|
|
@@ -311,8 +311,8 @@ class Linear(_Base):
|
|
|
311
311
|
derivative_covariance_sigma = self.derivative_sigma(X, X)
|
|
312
312
|
derivative_covariance_sigma_bias = self.derivative_sigma_bias(X, X)
|
|
313
313
|
|
|
314
|
-
self.sigma.grad
|
|
315
|
-
self.sigma_bias.grad
|
|
314
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
315
|
+
self.sigma_bias.grad += derivative_function(derivative_covariance_sigma_bias).to(dtype=self.sigma_bias.dtype)
|
|
316
316
|
|
|
317
317
|
def parameters(self):
|
|
318
318
|
"""
|
|
@@ -405,7 +405,7 @@ class WhiteGaussian(_Base):
|
|
|
405
405
|
"""
|
|
406
406
|
derivative_covariance_sigma = self.derivative_sigma(X, X)
|
|
407
407
|
|
|
408
|
-
self.sigma.grad
|
|
408
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
409
409
|
|
|
410
410
|
def parameters(self):
|
|
411
411
|
"""
|
|
@@ -550,9 +550,9 @@ class Periodic(_Base):
|
|
|
550
550
|
derivative_covariance_corr_len = self.derivative_corr_len(X, X)
|
|
551
551
|
derivative_covariance_period = self.derivative_period(X, X)
|
|
552
552
|
|
|
553
|
-
self.sigma.grad
|
|
554
|
-
self.correlation_length.grad
|
|
555
|
-
self.period.grad
|
|
553
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
554
|
+
self.correlation_length.grad += derivative_function(derivative_covariance_corr_len).to(dtype=self.correlation_length.dtype)
|
|
555
|
+
self.period.grad += derivative_function(derivative_covariance_period).to(dtype=self.period.dtype)
|
|
556
556
|
|
|
557
557
|
def parameters(self):
|
|
558
558
|
"""
|
|
@@ -697,9 +697,9 @@ class RationalQuadratic(_Base):
|
|
|
697
697
|
derivative_covariance_corr_len = self.derivative_corr_len(X, X)
|
|
698
698
|
derivative_covariance_alpha = self.derivative_alpha(X, X)
|
|
699
699
|
|
|
700
|
-
self.sigma.grad
|
|
701
|
-
self.correlation_length.grad
|
|
702
|
-
self.alpha.grad
|
|
700
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
701
|
+
self.correlation_length.grad += derivative_function(derivative_covariance_corr_len).to(dtype=self.correlation_length.dtype)
|
|
702
|
+
self.alpha.grad += derivative_function(derivative_covariance_alpha).to(dtype=self.alpha.dtype)
|
|
703
703
|
|
|
704
704
|
def parameters(self):
|
|
705
705
|
"""
|
|
@@ -838,8 +838,8 @@ class Matern(_Base):
|
|
|
838
838
|
derivative_covariance_sigma = self.derivative_sigma(X, X)
|
|
839
839
|
derivative_covariance_corr_len = self.derivative_corr_len(X, X)
|
|
840
840
|
|
|
841
|
-
self.sigma.grad
|
|
842
|
-
self.correlation_length.grad
|
|
841
|
+
self.sigma.grad += derivative_function(derivative_covariance_sigma).to(dtype=self.sigma.dtype)
|
|
842
|
+
self.correlation_length.grad += derivative_function(derivative_covariance_corr_len).to(dtype=self.correlation_length.dtype)
|
|
843
843
|
|
|
844
844
|
def parameters(self):
|
|
845
845
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyDLLib
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A deep and machine learning library. Made for learning purposes and ease of understanding.
|
|
5
5
|
Author-email: Aatu Selkee <aatu.selkee@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://naapeli.github.io/deep-learning-library/index.html
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyDLLib
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
4
4
|
Summary: A deep and machine learning library. Made for learning purposes and ease of understanding.
|
|
5
5
|
Author-email: Aatu Selkee <aatu.selkee@gmail.com>
|
|
6
6
|
Project-URL: Homepage, https://naapeli.github.io/deep-learning-library/index.html
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_BaseRegularisation.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_BatchNormalisation.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_GroupNormalisation.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_InstanceNormalisation.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/DeepLearning/Layers/Regularisation/_LayerNormalisation.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Calibration/__init__.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/GaussianProcesses/__init__.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/TimeSeries.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_Elasticnet.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/_RANSAC.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/LinearModels/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/NaiveBayes/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Neighbors/__init__.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/SupportVectorMachines/_SVC.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/SupportVectorMachines/_SVR.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_AdaBoostClassifier.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_AdaBoostRegressor.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_DecisionTree.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_LGBMClassifier.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_LGBMRegressor.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RandomForest.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RegressionForest.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_RegressionTree.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostClassifier.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostRegressor.py
RENAMED
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/SupervisedLearning/Trees/_XGBoostTree.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_DBScan.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/_KMeans.py
RENAMED
|
File without changes
|
|
File without changes
|
{pydllib-1.0.2 → pydllib-1.0.3}/DLL/MachineLearning/UnsupervisedLearning/Clustering/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|