Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Machine-Learning
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julius Rominger
Machine-Learning
Commits
f520d7b0
Commit
f520d7b0
authored
Feb 27, 2021
by
Julius Rominger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Slightly changes
parent
d4959c5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
own_loss_function.py
loss_function/own_loss_function.py
+1
-1
own_loss_function_cv2.py
loss_function/own_loss_function_cv2.py
+1
-1
No files found.
loss_function/own_loss_function.py
View file @
f520d7b0
...
...
@@ -318,7 +318,7 @@ my_nn.eval()
opt
=
optim
.
SGD
(
params
=
my_nn
.
parameters
(),
lr
=
0.1
)
result
=
my_nn
(
weightmatrix
.
view
(
batch_size
,
1
,
1
,
100
))
for
epoch
in
tqdm
(
range
(
15
)):
for
epoch
in
tqdm
(
range
(
15
000
)):
result
=
my_nn
(
weightmatrix
.
view
(
batch_size
,
1
,
1
,
100
))
loss
=
criterion
(
result_given
=
result
.
view
(
batch_size
,
1
,
10
,
10
),
points_given
=
points
)
print
(
"loss"
,
loss
)
...
...
loss_function/own_loss_function_cv2.py
View file @
f520d7b0
...
...
@@ -229,7 +229,7 @@ result = my_nn(random_data.view(batch_size,1, 1,100))
print
(
result
.
view
(
10
,
10
))
for
epoch
in
tqdm
(
range
(
75
)):
for
epoch
in
tqdm
(
range
(
15000
)):
result
=
my_nn
(
random_data
.
view
(
batch_size
,
1
,
1
,
100
))
start_loss
,
gap_loss
,
cluster_size_loss
=
criterion
(
result_given
=
result
.
view
(
batch_size
,
1
,
10
,
10
),
points_given
=
points
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment