Instantly share code, notes, and snippets.

anonymous /StatsModelsSettings.py
Created Jun 22, 2015

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