erdogant / hnet Goto Github PK
View Code? Open in Web Editor NEWAssociation ruled based networks using graphical Hypergeometric Networks.
Home Page: https://erdogant.github.io/hnet
License: Apache License 2.0
Association ruled based networks using graphical Hypergeometric Networks.
Home Page: https://erdogant.github.io/hnet
License: Apache License 2.0
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'
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 `
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.