Code Monkey home page Code Monkey logo

demo-alt-datasci-tools's Introduction

Demo some of the alternative software tools for data science

A 30 minute minute demo of some of the 'less used in data science' software tools that I’ve been using. For example: Clojure instead of Python, Clerk instead of Jupyter, DVC instead of run-all.sh.

Computer prep

These need to have been installed on the computer. Their exact version numbers aren’t crucial but they probably need to be year 2022 -ish versions.

# Git
$ git --version
git version 2.32.1

# Java
$ java --version
openjdk 17.0.6 2023-01-17
OpenJDK Runtime Environment Homebrew (build 17.0.6+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.6+0, mixed mode, sharing)

# Clojure
$ clj --version
Clojure CLI version 1.11.1.1208

# Python
$ python3 -VV
Python 3.8.9 (default, Apr 13 2022, 08:48:06)
[Clang 13.1.6 (clang-1316.0.21.2.5)]

# R
$ R --version
R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"

# DVC
$ dvc --version
2.43.0

Install a local copy of this repository.

# Clone this repo
$ git clone https://github.com/ash-mcc/demo-alt-datasco-tools.git
$ cd demo-alt-datasco-tools

Python libraries

# Install Python libraries
$ python3 -m pip install -r requirements.txt

R libraries

# Install R libraries
$ R
> install.packages("RServe")
> install.packages("GGally")
> install.packages("Cairo")

> x <- installed.packages(); x[ is.na(x[,"Priority"]), c("Package", "Version")]
Package        Version
"Cairo"        "1.6-0"
"GGally"       "2.1.2"
"Rserve"       "1.8-12"

# Needed to install the XQuartz lib (X11 for mac)
# to make clojisr.v1.applications.plotting/plot->file
# fully work

Demo

Preamble

src/clj/deceptively_simple.clj - what Clojure looks like

src/clj/R_interop.clj - plays nicely with statistician software

src/clj/Python_interop.clj - plays nicely with AI-ers software

DVC - experiment tracking, reproducibility, data and code

Commands to demo tracked ML experiments over an Iris dataset.

# Get the data
$ dvc update data/*.dvc

# Run the whole pipeline
$ dvc repro

# Show the metrics
$ dvc exp show

# Pipe those metrics into a CSV
$ dvc exp show --csv --all-branches > show.csv

# Show those metrics as a parallel coordinates plot
$ dvc exp show --pcp --all-branches

demo-alt-datasci-tools's People

Contributors

ash-mcc avatar

Watchers

 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.