/hands-on-lab-neo4j-and-sagemaker

Hands on lab for Neo4j and SageMaker Amazon

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

hands-on-lab-neo4j-and-sagemaker

Neo4j is the leading graph database vendor. We’ve worked closely with AWS Engineering for years. Our products, Neo4j Graph Database, Graph Data Science and Bloom are offered in the AWS Marketplace.

In this hands on lab, you’ll get to learn about Neo4j and Amazon SageMaker. The lab is intended for data scientists and data engineers. We’ll walk through deploying Neo4j and SageMaker on AWS in your own AWS account. Then we’ll get hands on with a real world dataset, building a machine learning pipeline that takes advantage of features generated using Neo4j Graph Data Science to improve prediction in Amazon SageMaker. You’ll come out of this lab with enough knowledge to apply graph feature engineering to your own datasets.

We’re going to analyze the quarterly filings of asset managers with $100m+ assets under management (AUM). These are regulatory filings made to the Securities and Exchange Commission’s (SEC) EDGAR system. We’re going to show how to load that data from an AWS S3 bucket into Neo4j. We’ll then explore the relationships of different asset managers and their holdings using the Neo4j Browser and Neo4j’s Cypher query language.

Finally, we’ll use Neo4j Graph Data Science to create a graph embedding from our data, export that out, and run supervised learning algorithms in Amazon SageMaker. We’ll try to predict what holdings asset managers will maintain or enlarge in the next quarter.

If you’re in the capital markets space, we think you’ll be interested in potential applications of this approach to creating new features for algorithmic trading, understanding tail risk, securities master data management and so on. If you’re not in the capital markets space, this session will still be useful to learn about building machine learning pipelines with Neo4j and Amazon SageMaker.

Venue

These workshops are organized onsite in an AWS office.

Duration

3 hours.

Prerequisites

You'll need a laptop with a web browser. Your browser will need to be able to access the AWS Console and port 7474 on a Neo4j deployment running in AWS. If your laptop has a firewall you can't control on it, you may want to bring your personal laptop.

If you have an AWS account already, you may be able to use that. You would need permissions that allow you to deploy a SageMaker domain and deploy a CloudFormation template from Marketplace. It would also need permission to deploy various AWS resources including a VPC and a Load Balancer. If your access doesn't meet those requirements, we'll walk you through creating a new account with full access.

Agenda

Part 1

Part 2

Part 3

  • Lecture - SageMaker (10 min)
    • What is SageMaker?
    • Using SageMaker with Neo4j
  • Lab 5 - SageMaker (15 min)
    • Create a SageMaker Domain
    • Import from GitHub to SageMaker Studio
    • Pandas
    • Cypher
  • Break (5 min)

Part 4