Skip to content

Commit

Permalink
Merge pull request #29 from RichardScottOZ/patch-1
Browse files Browse the repository at this point in the history
minor edits
  • Loading branch information
Nowosad authored Aug 1, 2024
2 parents 1bb1d28 + 5cdcf17 commit e7320e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scikeo/deeplearning.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, image, endmembers, nodata = -99999):
key_nan = np.isnan(np.sum(arr[:,0]))

if key_nan:
# saving un array for predicted classes
# saving an array for predicted classes
class_final = arr[:, 0].copy()
# positions with nan
posIndx = np.argwhere(~np.isnan(class_final)).flatten()
Expand Down Expand Up @@ -115,13 +115,13 @@ def FullyConnected(self, hidden_layers = 3, hidden_units = [64, 32, 16], output_
random_state = None):

'''
This algorithm consists of a network with a sequence of Dense layers, which area densely
connnected (also called *fully connected*) neural layers. This is the simplest of deep
This algorithm consists of a network with a sequence of Dense layers, which are densely
connected (also called *fully connected*) neural layers. This is the simplest of deep
learning.
Parameters:
hidden_layers: Number of hidden layers to be used. 3 is for default.
hidden_layers: Number of hidden layers to be used. 3 is the default.
hidden_units: Number of units to be used. This is related to 'neurons' in each hidden
layers.
Expand All @@ -132,7 +132,7 @@ def FullyConnected(self, hidden_layers = 3, hidden_units = [64, 32, 16], output_
Keras model while training. The model cannot know the shape of the
training data. The shape of other tensors(layers) is computed automatically.
epochs: Number of iteration, the network will compute the gradients of the weights with
epochs: Number of iterations, the network will compute the gradients of the weights with
regard to the loss on the batch, and update the weights accordingly.
batch_size: This break the data into small batches. In deep learning, models do not
Expand Down

0 comments on commit e7320e1

Please # to comment.