Inconsistencies of FUEL_DATA_PATH and fuelrc

166 views
Skip to first unread message

andbb...@gmail.com

unread,
Jun 22, 2015, 12:39:58 PM6/22/15
to fuel-...@googlegroups.com
Do I need to both set my datapath in ~/.fuelrc and export FUEL_DATA_PATH?

I set my datapath in ~/.fuelrc as the tutorial says (on the home page) but running fuel-download puts datasets in the current directory. Would be nice if setting ~/.fuelrc also sets $FUEL_DATA_PATH


Vincent Dumoulin

unread,
Jun 22, 2015, 2:04:01 PM6/22/15
to fuel-...@googlegroups.com, andbb...@gmail.com, andbb...@gmail.com
Hi,
Here's the relationship between the data_path variable in ~/.fuelrc and the FUEL_DATA_PATH environment variable: they both set fuel.config.data_path, which is used internally to determine where to look for built-in dataset files. FUEL_DATA_PATH has precedence over the ~/.fuelrc setting, which lets you momentarily override the data path like so:

FUEL_DATA_PATH=/some/other/data/path python my_script.py

Note that fuel.config.data_path recently got overhauled and now supports multiple paths in a PATH-like fashion. Fuel will cycle through each path in the sequence and use the first file found.

The fact that fuel-download puts the downloaded files in the current directory by default is expected behaviour: since there are multiple possible data paths, there's a legitimate question as to where to put the files by default. We chose to use the current directory by default and let the user explicitly define where to put the downloaded files like so:

fuel-download mnist -d /one/of/my/data/paths

chendan...@gmail.com

unread,
Jan 29, 2016, 11:12:14 PM1/29/16
to fuel-users, andbb...@gmail.com
where is  ~/.fuelrc?

在 2015年6月22日星期一 UTC-4下午2:04:01,Vincent Dumoulin写道:

Bart van Merriënboer

unread,
Jan 30, 2016, 11:40:00 AM1/30/16
to chendan...@gmail.com, fuel-users
~ means $HOME i.e. it is in your home directory. You will need to create it the first time though.
--
You received this message because you are subscribed to the Google Groups "fuel-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fuel-users+...@googlegroups.com.
To post to this group, send email to fuel-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fuel-users/c61886e6-3733-4df5-ba80-b216834f0857%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages