File tree Expand file tree Collapse file tree 11 files changed +436
-1
lines changed
projects/math/numerical-linalg Expand file tree Collapse file tree 11 files changed +436
-1
lines changed Original file line number Diff line number Diff line change 6868 :source-path " projects/ml/llm"
6969 :cmd " clj notebooks/render.clj"
7070 :tags [:nlp :ml ]}
71- ]
71+
72+ {:created " 2024-12-28"
73+ :updated " 2024-12-28"
74+ :title " Numerical Linear Algebra (Fast.ai-inspired)"
75+ :url " projects/math/numerical-linalg/index.html"
76+ :source-path " projects/math/numerical-linalg"
77+ :cmd " clj notebooks/render.clj"
78+ :tags [:math :linear-algebra :fastai ]}]
Original file line number Diff line number Diff line change 1+ ARG BASE_IMAGE=temurin-21-tools-deps-jammy
2+ FROM clojure:${BASE_IMAGE}
3+
4+ ARG USERNAME=vscode
5+ ARG USER_UID=1000
6+ ARG USER_GID=$USER_UID
7+
8+ # Create the user
9+ RUN groupadd --gid $USER_GID $USERNAME \
10+ && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
11+ #
12+ # [Optional] Add sudo support. Omit if you don't need to install software after connecting.
13+ && apt-get update \
14+ && apt-get install -y sudo \
15+ && echo $USERNAME ALL=\( root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
16+ && chmod 0440 /etc/sudoers.d/$USERNAME
17+
18+
19+ # [Optional] Set the default user. Omit if you want to keep the default as root.
20+ USER $USERNAME
21+ SHELL ["/bin/bash" , "-ec" ]
22+ ENTRYPOINT ["bash" ]
23+
24+
25+ # Prepare clojure tools
26+ RUN clojure -Ttools list && \
27+ clojure -Ttools install io.github.seancorfield/clj-new '{:git/tag "v1.2.404" :git/sha "d4a6508"}' :as clj-new && \
28+ clojure -Ttools install-latest :lib io.github.seancorfield/deps-new :as new && \
29+ clojure -Ttools list
30+
31+ RUN sudo apt-get update && \
32+ sudo apt-get install -y lsb-release
Original file line number Diff line number Diff line change 1+ // For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+ // README at: https://github.com/scicloj/devcontainer-templates/tree/main/src/basecloj
3+ {
4+ "name" : " Base clojure dev env" ,
5+ "build" : {
6+ "dockerfile" : " Dockerfile" ,
7+ "args" : {
8+ "BASE_IMAGE" : " temurin-21-tools-deps-jammy" ,
9+ "USERNAME" : " ${localEnv:USER}"
10+ }
11+ },
12+ "remoteUser" : " ${localEnv:USER}" ,
13+ "containerUser" : " ${localEnv:USER}" ,
14+ "features" : {
15+ "ghcr.io/devcontainers/features/git:1" : {},
16+ "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1" : {},
17+ "ghcr.io/devcontainers-contrib/features/bash-command:1" :
18+ {"command" : " apt-get update && apt-get install -y rlwrap && apt-get install -y libxtst-dev ffmpeg" }
19+ },
20+ "customizations" : {
21+ "vscode" : {
22+ "extensions" : [
23+ " betterthantomorrow.calva"
24+ ]
25+ }
26+ }
27+ }
Original file line number Diff line number Diff line change 1+ {:remote-repo {:git-url " https://github.com/scicloj/clojure-data-tutorials"
2+ :branch " main" }
3+ :base-target-path " temp"
4+ :quarto {:format
5+ {:html
6+ {:theme
7+ [:cosmo " notebooks/custom.scss" ]}}}}
Original file line number Diff line number Diff line change 1+ {:deps {org.scicloj/noj {:mvn/version " 2-beta3" }
2+ com.phronemophobic/clj-media {:mvn/version " 2.3" }}
3+ :paths [" src" " notebooks" ]}
Original file line number Diff line number Diff line change 1+ @import url (https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css );
2+
3+ /* -- scss:rules --*/
4+ .table {width :auto ;}
5+
6+ code {font-family : ' Fira Code Medium' , monospace ;}
7+
8+ .table {
9+ @extend .table-striped ;
10+ @extend .table-hover ;
11+ @extend .table-responsive ;
12+ }
13+
14+ .clay-dataset {
15+ max-height :400px ;
16+ overflow-y : auto ;
17+ }
18+
19+ .printedClojure {
20+ max-height :400px ;
21+ overflow-y : auto ;
22+ }
Original file line number Diff line number Diff line change 1+ (load-string (slurp " https://raw.githubusercontent.com/scicloj/clojure-data-tutorials/main/header.edn" ))
2+
3+ ^:kindly/hide-code
4+ (ns index )
5+
6+ ; ; # Preface
7+
8+ ; ; This is a Clojure port of parts of the Fast.ai Numerical Linear Algebra
9+ ; ; v2 course.
10+ ; ; [fastai](https://github.com/fastai)/[numerical-linear-algebra-v2](https://github.com/fastai/numerical-linear-algebra-v2)
Original file line number Diff line number Diff line change 1+ Video_003.mp4 was downloaded from
2+ https://nbviewer.org/github/fastai/numerical-linear-algebra-v2/blob/master/nbs/02-Background-Removal-with-SVD.ipynb
3+ on 2024-12-24.
Original file line number Diff line number Diff line change 1+ (ns render
2+ (:require [scicloj.clay.v2.api :as clay]))
3+
4+ (clay/make! {:format [:quarto :html ]
5+ :show false
6+ :base-source-path " notebooks"
7+ :source-path [" index.clj"
8+ " svd.clj" ]
9+ :base-target-path " docs"
10+ :book {:title " Numerical Linear Algebra" }
11+ :clean-up-target-dir true })
12+ (System/exit 0 )
You can’t perform that action at this time.
0 commit comments