Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eiichiroito/numpharo
NumPy like tools for Pharo Smalltalk
https://github.com/eiichiroito/numpharo
matplotlib-pyplot numpy pharo pharo-smalltalk smalltalk
Last synced: 7 days ago
JSON representation
NumPy like tools for Pharo Smalltalk
- Host: GitHub
- URL: https://github.com/eiichiroito/numpharo
- Owner: EiichiroIto
- License: mit
- Created: 2020-10-03T10:58:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-03-20T10:53:10.000Z (almost 4 years ago)
- Last Synced: 2024-12-18T21:17:28.359Z (7 days ago)
- Topics: matplotlib-pyplot, numpy, pharo, pharo-smalltalk, smalltalk
- Language: Smalltalk
- Homepage:
- Size: 1.36 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NumPharo
NumPy like tools for Pharo Smalltalk.![Build Status](https://api.travis-ci.com/EiichiroIto/NumPharo.svg?branch=main&status=unknown)
This is just my personal project.
I bought the book "Deep Learning from Scratch" last year.
I would like to build Deep Learning System from Scratch using Pharo Smalltalk,
but the book uses NumPy and some tools, So I decide to implement NumPy like tools.For now, I implemented some alternative tools like this:
- NumPy (NDArray)
- Matplotlib.pyplot (line graph, scatter graph, bar graph and image)## Install repository on Pharo (for developer)
```smalltalk
Metacello new
baseline: 'NumPharo';
repository: 'github://EiichiroIto/NumPharo:main/src';
load.
```## Demo & Tests
see PharoPlotSample class methods and DeepLearningFromScratch1Chapter classes.```smalltalk
example1
| x y plt |
x := NDArray arangeFrom: 0 to: 6 by: 0.1.
y := x sin.
plt := PharoPlot new.
plt extent: 500 @ 200.
plt plotX: x y: y label: 'sin'.
plt plotX: x y: x cos label: 'cos'.
plt title: 'sin & cos'.
plt xLabel: 'x'.
plt yLabel: 'y'.
plt showLegend: true.
plt show.
^ plt
```![Example1](https://raw.githubusercontent.com/EiichiroIto/NumPharo/main/images/example1.png)