Coder Social home page Coder Social logo

erdogant / hnet Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 3.0 46.96 MB

Association ruled based networks using graphical Hypergeometric Networks.

Home Page: https://erdogant.github.io/hnet

License: Apache License 2.0

Python 92.71% Shell 0.22% Jupyter Notebook 7.07%
network-analysis graph network inference association-analysis hypergeometric-distribution association association-learning d3-visualization d3js

hnet's People

Contributors

erdogant avatar erdoganta avatar oliver3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hnet's Issues

After install hnet via pip ModuleNotFoundError: No module named 'utils'

After installing hnet via pip, I cannot import hnet.

$ conda create -n env_hnet python=3.7
$ conda activate env_hnet
$ pip install hnet
$ python

>>> from hnet import hnet
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "~/anaconda3/envs/env_hnet/lib/python3.7/site-packages/hnet/__init__.py", line 1, in <module>
    from hnet.hnet import hnet
  File "~/anaconda3/envs/env_hnet/lib/python3.7/site-packages/hnet/hnet.py", line 24, in <module>
    from utils.savefig import savefig
ModuleNotFoundError: No module named 'utils'

D3Graph UnicodeEncodeError: error

Firstly, thanks for developing this great library. In Windows 10 with python 3.9 version, for the following part of hnet,

results = hn.association_learning(df)
G = hn.d3graph()

I get this UnicodeEncodeError: issue as given below. Looks like you might have to do utf-8 encoding somewhere in the d3graph code ? (something of this sort)

`192 # Final
193 out = dict()

~\AppData\Local\Programs\Python\Python39\lib\site-packages\d3graph\d3graph.py in _write_index_html(config, json_data)
274 index_file = Path(config['savepath'])
275 print('Writing %s' % index_file.absolute())
--> 276 index_file.write_text(index_template.render(content))
277
278

~\AppData\Local\Programs\Python\Python39\lib\pathlib.py in write_text(self, data, encoding, errors)
1273 data.class.name)
1274 with self.open(mode='w', encoding=encoding, errors=errors) as f:
-> 1275 return f.write(data)
1276
1277 def readlink(self):

~\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py in encode(self, input, final)
17 class IncrementalEncoder(codecs.IncrementalEncoder):
18 def encode(self, input, final=False):
---> 19 return codecs.charmap_encode(input,self.errors,encoding_table)[0]
20
21 class IncrementalDecoder(codecs.IncrementalDecoder):

UnicodeEncodeError: 'charmap' codec can't encode character '\u03b5' in position 44258: character maps to `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.