Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
decentralizepy
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
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SaCS
decentralizepy
Commits
50507efb
Commit
50507efb
authored
3 years ago
by
Rishi Sharma
Browse files
Options
Downloads
Patches
Plain Diff
log_dir moved to sharing
parent
7112e6e4
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
eval/main.ipynb
+1
-1
1 addition, 1 deletion
eval/main.ipynb
src/decentralizepy/sharing/PartialModel.py
+2
-3
2 additions, 3 deletions
src/decentralizepy/sharing/PartialModel.py
src/decentralizepy/sharing/Sharing.py
+4
-1
4 additions, 1 deletion
src/decentralizepy/sharing/Sharing.py
with
7 additions
and
5 deletions
eval/main.ipynb
+
1
−
1
View file @
50507efb
...
...
@@ -3724,7 +3724,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.
9
"
"version": "3.9.
7
"
},
"orig_nbformat": 4
},
...
...
This diff is collapsed.
Click to expand it.
src/decentralizepy/sharing/PartialModel.py
+
2
−
3
View file @
50507efb
...
...
@@ -41,14 +41,13 @@ class PartialModel(Sharing):
model : decentralizepy.models.Model
Model to train
dataset : decentralizepy.datasets.Dataset
Dataset for sharing data. Not implemented ye
r
! TODO
Dataset for sharing data. Not implemented ye
t
! TODO
log_dir : str
Location to write shared_params (only writing for 2 procs per machine)
"""
super
().
__init__
(
rank
,
machine_id
,
communication
,
mapping
,
graph
,
model
,
dataset
rank
,
machine_id
,
communication
,
mapping
,
graph
,
model
,
dataset
,
log_dir
)
self
.
log_dir
=
log_dir
self
.
alpha
=
alpha
self
.
dict_ordered
=
dict_ordered
self
.
save_shared
=
save_shared
...
...
This diff is collapsed.
Click to expand it.
src/decentralizepy/sharing/Sharing.py
+
4
−
1
View file @
50507efb
...
...
@@ -11,7 +11,9 @@ class Sharing:
API defining who to share with and what, and what to do on receiving
"""
def
__init__
(
self
,
rank
,
machine_id
,
communication
,
mapping
,
graph
,
model
,
dataset
):
def
__init__
(
self
,
rank
,
machine_id
,
communication
,
mapping
,
graph
,
model
,
dataset
,
log_dir
):
"""
Constructor
Parameters
...
...
@@ -42,6 +44,7 @@ class Sharing:
self
.
model
=
model
self
.
dataset
=
dataset
self
.
communication_round
=
0
self
.
log_dir
=
log_dir
self
.
peer_deques
=
dict
()
my_neighbors
=
self
.
graph
.
neighbors
(
self
.
uid
)
...
...
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