GithubHelp home page GithubHelp logo

mozilla-github-standards / 4026a07ae9e3045853ae7d9831d7abb9d167a00d33f30309dfbc5f22ab4e7398 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/fxa-retention-metrics

0.0 0.0 0.0 126 KB

fxa-retention-metrics

Home Page: https://mana.mozilla.org/wiki/display/CLOUDSERVICES/Retention+Metrics

Makefile 0.30% Shell 0.36% Python 10.13% Jupyter Notebook 89.22%

4026a07ae9e3045853ae7d9831d7abb9d167a00d33f30309dfbc5f22ab4e7398's Introduction

fxa-retention-metrics

Build Status

Dependencies

  • Spark 1.3.1
  • com.databricks:spark-csv_2.10:1.2.0 Spark package (included with Spark, no need to install, see PYSPARK_SUBMIT_ARGS)
  • Python 2.7

Local Development Setup

  1. Git Clone the project and Download Spark 1.3.1 and extract it into this project directory:
git clone https://github.com/mozilla/fxa-retention-metrics.git
cd fxa-retention-metrics
make install

  1. Run source ./local/bin/activate in your terminal
  2. Run the csv script to generate random data:
python tools/generate_mock_csv.py
  1. Run one of the metrics/ scripts to test the graphs on sample data:
python metrics/retention_events_signed.py
  1. Work on new metrics scripts in /metrics, once ready create a new conversion script under /books for your new metrics script.
  2. Run the conversion script, e.g python books/retention_events_signed.py
  3. Upload your new .ipynb to a local Spark UI for testing or telemetry-dash.mozilla.org

Commands

make

Rebuild the books with changes made to files in /ipynb_generators.

make test

Test the scripts.

make install

Installs Spark and does other things to setup the project.

make spark

Runs Spark locally to manually test if books in /ipynb/dev/* work. After Spark loads you will be able to navigate to Spark Web UI, navigate to /ipynb/dev using your browser.

Open the notebook and run (>|) through all the cells to get a graph:

Demo Graph

Gist Source: https://gist.github.com/vladikoff/9d2df4558299cf9c1795

4026a07ae9e3045853ae7d9831d7abb9d167a00d33f30309dfbc5f22ab4e7398's People

Contributors

vladikoff avatar

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.