/timm's /charming /python /tricks
Download
the.py.
Read more on How to be Charming (in Python).
01: import sys 02: sys.dont_write_bytecode=True 03: from base import Thing 04: 05: class The: 06: "Config stuff" 07: # stuff for magic symbols in header 08: read = Thing(ignore = '?', 09: more = '>', 10: less = '<', 11: klass = '=', 12: num = '$') 13: 14: # stuff for maths 15: math = Thing(seed = 1, 16: inf = 10**32, 17: ninf = -1*10**32, 18: tiny = 10**-32, 19: hedges= 0.38,# less severe. strict=0.17 20: cohen = 0.2) 21: # stuff for 22: model = Thing(repeats = 10) 23: # stuff for discretization 24: chop = Thing(bins = 8, 25: keep = 128) 26: # stuff for SA 27: sa = Thing(p = 0.33, 28: epsilon = 0.01, 29: kmax = 1000, 30: stagger = 1.0, 31: era = 30, 32: runs = 50) 33: issamp = Thing(epsilon = 0.01, 34: era = 1000, 35: bins=5) 36: 37: The.read.chars= ''.join(vars(The.read).values()) 38:
This file is part of Timm's charming Python tricks.
© 2014, Tim Menzies:
tim.menzies@gmail.com,
http://menzies.us.
Timm's charming Python tricks are free software: you can redistribute it and/or modify it under the terms of the GNU Lesser Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Timm's charming Python tricks are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser Public License along with Foobar. If not, see http://www.gnu.org/licenses.