summaryrefslogtreecommitdiff
path: root/src/Nerve_GIC/example
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-11 20:15:07 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-11-11 20:15:07 +0000
commit565f94bd9163e46eef1f473272f90045fefc8fc7 (patch)
tree77f9a6c430f59c1bdea836ca6bfc6a9c18bcd427 /src/Nerve_GIC/example
parent3d4c842d34f4d6c52ba6c39836f57d702d6a6ff3 (diff)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2863 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 24f89509fa5960407eb9db4e3eabe95ee4bc2bb2
Diffstat (limited to 'src/Nerve_GIC/example')
-rwxr-xr-xsrc/Nerve_GIC/example/km.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/Nerve_GIC/example/km.py b/src/Nerve_GIC/example/km.py
index a1a08156..53024aab 100755
--- a/src/Nerve_GIC/example/km.py
+++ b/src/Nerve_GIC/example/km.py
@@ -53,15 +53,15 @@ class KeplerMapper(object):
self.projection = str(projection)
# Detect if projection is a class (for scikit-learn)
- if str(type(projection))[1:6] == "class": #TODO: de-ugly-fy
- reducer = projection
- if self.verbose > 0:
- try:
- projection.set_params(**{"verbose":self.verbose})
- except:
- pass
- print("\n..Projecting data using: \n\t%s\n"%str(projection))
- X = reducer.fit_transform(X)
+ #if str(type(projection))[1:6] == "class": #TODO: de-ugly-fy
+ # reducer = projection
+ # if self.verbose > 0:
+ # try:
+ # projection.set_params(**{"verbose":self.verbose})
+ # except:
+ # pass
+ # print("\n..Projecting data using: \n\t%s\n"%str(projection))
+ # X = reducer.fit_transform(X)
# Detect if projection is a string (for standard functions)
if isinstance(projection, str):
@@ -387,4 +387,4 @@ class KeplerMapper(object):
</script>"""%(title,width_css, height_css, title_display, meta_display, tooltips_display, title,complex["meta"],res,gain*100,color_function,width_js,height_js,graph_charge,graph_link_distance,graph_gravity,json.dumps(json_s))
outfile.write(html.encode("utf-8"))
if self.verbose > 0:
- print("\nWrote d3.js graph to '%s'"%path_html) \ No newline at end of file
+ print("\nWrote d3.js graph to '%s'"%path_html)