Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
szufix committed Feb 19, 2024
1 parent 50cd638 commit dedc234
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions mapel-core/src/mapel/core/embedding/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def embed(experiment_id,
my_pos = MDS(n_components=dim,
dissimilarity='precomputed',
max_iter=num_iterations,
normalized_stress='auto',
**kwargs
).fit_transform(x)
elif embedding_id.lower() in {'tsne'}:
Expand Down
2 changes: 2 additions & 0 deletions mapel-elections/src/mapel/elections/objects/Election.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ def embed(self, algorithm='MDS', object_type=None, virtual=False):

if object_type == 'vote':
length = self.num_options
elif object_type == 'candidate':
pass
else:
logging.warning('No such type of object!')
length = None
Expand Down

0 comments on commit dedc234

Please sign in to comment.