-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix graph style and make the graph changes last
- Loading branch information
1 parent
58227cb
commit b0064d5
Showing
6 changed files
with
99 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,3 +74,6 @@ nosetests.xml | |
# Model | ||
*.pt | ||
**/*.pt | ||
|
||
# Scope Reducing Json | ||
examples/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
from bdikit.mapping_algorithms.scope_reducing.algorithms import YurongReducer | ||
from bdikit.visualization.scope_reducing import SRHeatMapManager | ||
|
||
|
||
class ScopeReducingManager: | ||
def __init__(self, dataset, target_domain): | ||
self.dataset = dataset | ||
self.target_domain = target_domain | ||
self.best_method = YurongReducer() | ||
self.visualization_manager = None | ||
|
||
def reduce(self): | ||
reducings = self.best_method.reduce_scope(self.dataset) | ||
self.visualization_manager = SRHeatMapManager(self.dataset, reducings) | ||
return reducings | ||
|
||
def get_heatmap(self): | ||
self.visualization_manager.get_heatmap() | ||
return self.visualization_manager.plot_heatmap() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters