Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
"Guiding Future STEM Leaders through Innovative Research Training" ~ thinkingbeyond.education
Image: ubuntu2204
Summary of code
The purpose of this code is to create visualisations for our proof on our research poster. It uses the Manim library to create visualisations. The visualisations creates are as follows:
Visualisation of a discrete piecewise function
Visualisation of a tower function
Visualisation of another discrete piecewise function
Visualisation of a bump function
Visualisation of a step function
All videos are saved in Files > jupyter.
#Installing dependencies This section installs Manim and IPython.
#Importing manim
#Setting colours for visualisation This section uses specific hex codes to define colours to be used later.
#Visualisation for section in poster titled: 'MLPs with sigmoid activation can approximate continuous functions'
##1. Visualisation of a discrete piecewise function
This section creates a video of a discrete piecewise function which consists of nine planes. The axes and function rotate, allowing us to better understand the visualisation and take screenshots at different angles for the poster.
#Visualisations for section in poster titled: 'Breakdown of Nielsen’s visual proof'
##2. Visualisation of a tower function
This visualisation creates a tower function plotted on a grid surface on a graph with 3 axes.
###Code:
###Display image:
##3. Visualisation of another discrete piecewise function This visualisation creates a second discrete piecewise function with different colours (for the poster). This plot does not rotate.
###Code:
###Display image:
##4. Visualisation of a bump function
A bump function is visualised by using a parametrically defined grid surface.
###Code:
###Display image:
##5. Visualisation of a step function
A step function is defined by plotting 2 planes (using surfaces) on a 3D graph with 3 axes.
###Code:
###Display image: