Giter Club home page Giter Club logo

couchbase-jupyter-example's Introduction

couchbase-jupyter-example

Summary

This repository includes an example Jupyter notebook that walks through how to access data stored in a Couchbase cluster from the Jupyter Notebook environment.

We will get the data from the Couchbase cluster and use it to train a linear regression model. The goal is to take a particular sample and predict the value of a target variable using different categorical variables using a linear regression equation.

Data set used is the Advertising Dataset from Kaggle.

How to Run

  • Install requirements.

    $ pip install -r requirements.txt

  • Load the Dataset in the Couchbase Cluster using cbimport or using the Admin Console as described in the accompanying blog post.

  • Open the Notebook and adjust the username and password in the first cell to reflect the password used for your cluster. Also adjust the Cluster connection string, bucket and collection settings if they are different from the ones in the Notebook.

    pa = PasswordAuthenticator("Administrator", "123456")

    cluster = Cluster("couchbase://127.0.0.1", ClusterOptions(pa))

    bucket = cluster.bucket("TestBucket")

    collection = bucket.default_collection()

  • The code in the Notebook should now run without issues.

couchbase-jupyter-example's People

Contributors

nithishr avatar

Watchers

Steve Yen avatar Sarath Lakshman avatar Jeffry Morris avatar Priya Rajagopal avatar James Cloos avatar Brett Lawson avatar Jack Harper avatar Wayne Siu avatar  avatar Dan Owen avatar  avatar Adam Fraser avatar Keshav Murthy avatar  avatar  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.