GithubHelp home page GithubHelp logo

jpvanhal / flask-split Goto Github PK

View Code? Open in Web Editor NEW
120.0 120.0 37.0 93 KB

A/B testing for your Flask application.

Home Page: https://flask-split.readthedocs.io/

License: MIT License

JavaScript 2.11% Python 85.60% CSS 0.98% HTML 11.31%

flask-split's People

Contributors

angusp avatar cclauss avatar jpvanhal avatar kwikiel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

flask-split's Issues

ValueError: math domain error

Thanks for the excellent work on flask-split. At this point, the /split route is bailing out with this error. Let me know if you have any insights. I've got the latest version from pip.

2013-05-17T12:10:04.083015+00:00 app[web.1]:
2013-05-17T12:10:04.083146+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/jinja2/environment.py", line 372, in getattr
2013-05-17T12:10:04.083290+00:00 app[web.1]: return getattr(obj, attribute)
2013-05-17T12:10:04.083378+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/flask_split/models.py", line 110, in z_score
2013-05-17T12:10:04.083477+00:00 app[web.1]: return mean / sqrt(var_cr + var_crc)
2013-05-17T12:10:04.083572+00:00 app[web.1]: ValueError: math domain error

Weights on alternatives

Hi,

I was trying to test an uneven split(90-10) by providing weights on alternatives for an experiment and it looks like the weights are not taken into consideration

experiment_name = "check_uneven_90_10"
alternatives = [("A", 90), ("B", 10)]
ab_test(experiment_name, *alternatives)

Also tried with
alternatives = [("A", 0.9), ("B", 0.1)]

I am still seeing an even(~50-50) split

Screen Shot 2020-07-31 at 7 52 45 AM

Please let me know if I am missing something or I am using this correctly?
Thanks in advance.

Full page ab test

hi,

Thanks for the simple plugin.
I tried adding the following code for testing a full page:

@ab_test.route('/ab_test_full_page')
def check_full_page():
    return render_template(ab_test('page_checker','page1.html', 'page2.html'))

I get the error: TypeError: 'Blueprint' object is not callable. Would appreciate if you could let me know the correct syntax.

TypeError: set([]) is not JSON serializable

Hey there, are you interested in teaming up on updating the library? I see you haven't made any updates in a while and there appear to be a few things not working.

Getting this error when trying to track the conversion in the template.

{{ finished('get_started_top_btn_text') }}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.