Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
homework1
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
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Advanced Computer Vision
homework1
Commits
924e5eaa
Commit
924e5eaa
authored
Aug 22, 2020
by
BRIGGAN2
Browse files
Options
Downloads
Patches
Plain Diff
Update README.md
parent
b3e0fbae
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+8
-7
8 additions, 7 deletions
README.md
with
8 additions
and
7 deletions
README.md
+
8
−
7
View file @
924e5eaa
...
...
@@ -43,8 +43,8 @@ def ica(x, **args):
x: numpy array of images
args:
lr: learning rate (default 1e-3)
nsteps: maximum iterations (default 100)
k: number of latent variables
nsteps: maximum iterations (default 100
0
)
k: number of latent variables
(defualt 20)
returns:
L: numpy array of loss function value for all iterations
...
...
@@ -53,9 +53,9 @@ def ica(x, **args):
# default parameters
if
not
len
(
args
):
args
[
'
lr
'
]
=
1
e-4
args
[
'
nsteps
'
]
=
10
00
args
[
'
k
'
]
=
20
args
[
'
lr
'
]
=
1
args
[
'
nsteps
'
]
=
2
00
args
[
'
k
'
]
=
64
lr
=
args
[
'
lr
'
]
nsteps
=
args
[
'
nsteps
'
]
...
...
@@ -66,6 +66,7 @@ def ica(x, **args):
'''
training loop using graident descent
'''
for
step
in
range
(
nsteps
):
# ***insert gradient descent code here***
'''
use backtracking line search
'''
# print loss
print
(
'
step: {} / {}, L: {}
'
.
format
(
step
,
nsteps
,
L
[
step
]))
...
...
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