Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Machine Learning
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
johannes bilk
Machine Learning
Commits
75faede1
Commit
75faede1
authored
1 year ago
by
johannes bilk
Browse files
Options
Downloads
Patches
Plain Diff
fixed an error in the network test file
parent
80a40322
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config-network
+3
-3
3 additions, 3 deletions
config-network
network-test.py
+8
-3
8 additions, 3 deletions
network-test.py
with
11 additions
and
6 deletions
config-network
+
3
−
3
View file @
75faede1
...
...
@@ -8,6 +8,6 @@ numLayers = 3
numNeurons = 81, 81, 81
convolutions1 = 1
channels1 = 1,3
#
channels12 = 1,5,5
#
kernelSize1 = (3,3)
#
kernelSize12 = (2,2)
channels12 = 1,5,5
kernelSize1 = (3,3)
kernelSize12 = (2,2)
This diff is collapsed.
Click to expand it.
network-test.py
+
8
−
3
View file @
75faede1
...
...
@@ -10,10 +10,9 @@ from machineLearning.nn.optim import SGD, SGDMomentum, NesterovMomentum, AdaGrad
from
machineLearning.nn.scheduler
import
ExponentialLR
,
SteppedLR
,
CyclicalLR
from
machineLearning.nn.module
import
Sequential
,
Parallel
from
machineLearning.nn.loss
import
CrossEntropyLoss
,
MSELoss
,
NLLLoss
,
MAELoss
,
FocalLoss
from
machineLearning.nn.observable
import
NetworkObservables
from
machineLearning.data
import
Data
from
machineLearning.utility
import
Time
,
Progressbar
from
machineLearning.metric
import
ConfusionMatrix
from
machineLearning.metric
import
ConfusionMatrix
,
Observables
from
machineLearning.settings
import
NetworkSettings
...
...
@@ -158,10 +157,16 @@ if __name__ == "__main__":
print
(
optim
)
print
(
lossFunc
)
# setting up training observables
metrics
=
Observables
(
settings
[
'
epochs
'
])
metrics
.
addOberservable
(
'
losses
'
,
'
descending
'
)
metrics
.
addOberservable
(
'
validation
'
,
'
descending
'
)
metrics
.
addOberservable
(
'
accuracy
'
,
'
ascending
'
)
metrics
.
addOberservable
(
'
learningRate
'
)
# Beginn training
print
(
"
Beginn training...
"
)
timer
.
start
()
metrics
=
NetworkObservables
(
settings
[
'
epochs
'
])
epochs
=
settings
[
'
epochs
'
]
for
i
in
range
(
settings
[
'
epochs
'
]):
data
.
trainMode
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment