Skip to content

Instantly share code, notes, and snippets.

Created June 22, 2015 14:54
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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