Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

epsilon

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epsilon

Better than A/B testing. Allows you to test multiple versions of a page and select the best version automatically.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
2
Created
Source

epsilon Build Status

JQuery and Node Implementation of the epsilon greedy algorithm.

This project is based on the blog post by Steve Hanov, 20 lines of code that will beat A/B testing every time.

Epsilon will keep a track of the conversion rate of elements of your page. You can include multiple versions of a div on your page. Epsilon will chose the version with the best conversion rate 90% of the time. The other 10% Epsilon will chose a random version.

Installation

npm install epsilon

Server Setup

var epsilon = require('epsilon');

app.configure(function(){
  app.use(epsilon.middleware());
  epsilon.bind(app);
});

Client Setup

Include the epsilon client script in your html. This script is exposed automatically in the epsilon middleware.

<script type='text/javascript' src='epsilon/epsilon_greedy.js'/>

Creating a test

<div class='epsilon-test' data-testname='h1-color-test'>
  <div class='epsilon-lever' data-levername='red-h1'>
    <h1 style="color:red;">Buy Some Stuff</h1>
  </div>
  <div class='epsilon-lever' data-levername='blue-h1'>
    <h1 style="color:blue;">Buy Some Stuff</h1>
  </div>
  <a class='epsilon-reward' href='/checkout'>Check out</a>
</div>

Thanks to @JacksonTian for giving us the module name, Epsilon.

Keywords

epsilon

FAQs

Package last updated on 04 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts