Skip to content

Instantly share code, notes, and snippets.

Created June 22, 2015 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/ed3db30a01351fe25f21 to your computer and use it in GitHub Desktop.
Save anonymous/ed3db30a01351fe25f21 to your computer and use it in GitHub Desktop.
StatsModels Abstraction
class StatsModelsSettings():
"""
This class contains settings for the statsmodels package, settings include,
* exponent:int - when equal to one this is a straight line, when >1 this is a curve
* confidence:boolean - specifies whether confidence lines should be calculated and plotted
"""
exponent = 1
confidence = False
def __init__(self, exponent=1, confidence=False):
"""
This initialization method constructs a new StatsModelSettings object
"""
self.exponent = exponent
self.confidence = confidence
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment