dongjunlee / hb-config Goto Github PK
View Code? Open in Web Editor NEWhb-config: easy to configure your python project especially Deep Learning experiments
License: MIT License
hb-config: easy to configure your python project especially Deep Learning experiments
License: MIT License
It happens to be the error below.
allan@statnlp0:~/projects/partialner_pytorch$
python3
Python 3.5.2 (default, Nov 23 2017, 16:37:01)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
from hbconfig import Config
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.5/dist-packages/hbconfig/init.py", line 40
raise FileNotFoundError(f"No such files start filename '{fname}'")
^
SyntaxError: invalid syntax
`
I used hb-config in python3.7 environment and got the following errors:
/opt/conda/lib/python3.7/site-packages/hbconfig/__init__.py:66: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
return yaml.load(config)
and I checked PyYAML and found that it has been changed to the following format:
yaml.load(input, Loader=yaml.FullLoader)
Hoping you can upload the code.
Many thanks!
Hi DongjunLee,
My stack is python3.6
tensorflow1.4
hb-config0.3.3
pycharm IDE 2017
I am impressed by working with your code.I'm currently working with RNN.I have gone through your code which is written using High level API'S like Estimators,Dataset and Experiment,But i'm facing error while running main.py file as follows....
Traceback (most recent call last):
File "/home/PycharmProjects/conversation-tensorflow-master/main.py", line 38, in
Config(args.config)
File "/home/virtual-3.6/lib/python3.6/site-packages/hbconfig/init.py", line 23, in call
self.config = self.read_file(fname)
File "/home/virtual-3.6/lib/python3.6/site-packages/hbconfig/init.py", line 32, in read_file
config_file = config_files[0]
IndexError: list index out of range
Kindly resolve this issue at the earliest..
Thanks in advance.
when i from hb_config import Config, get an error:
Traceback (most recent call last):
File "", line 1, in
File "/home/yangjing/.local/lib/python3.5/site-packages/hbconfig/init.py", line 40
raise FileNotFoundError(f"No such files start filename '{fname}'")
i cannot find reason....
when I'm trying to send the Config as a parameter to another function, sometimes it brings up the error.
suggest convert the python print function to low version, eg:
print(f’abc{value}’)
to
print(‘abc{}’.format(value))
so it can support not only python3.6 but other versions as well.
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.