from ipywidgets import interactive
from IPython.display import display
import numpy as np
import matplotlib.pyplot as plt
def gauss(p, w):
x=np.linspace(0.0, 1.0, 100)
y=2**(-(x-p)**2/w**2)
plt.plot(x, y)
plt.show()
g=interactive(gauss, p=(0.0,1.0), w=(0.1, 0.5))
display(g)
Showing posts with label Widgets. Show all posts
Showing posts with label Widgets. Show all posts
Sunday, February 14, 2021
IPythonWidget
Monday, February 1, 2021
Subscribe to:
Posts (Atom)
Popular Posts
-
skeleton Shape Analysis: Skeleton of Point Cloud with Python Source code: Github Understanding the shape of data is ...
-
SVM Support Vector Machine (P1) In this tutorial, we learn how to model the problem of classifying two clouds of data ...
-
Lasso Safe Screening Lasso Safe Screening for Feature Elimination Lasso promotes sparsity in machine learning, statist...
-
Interior_point_method Linear Programming using Interior Point Method Linear programming is a method to optimize a line...
-
similarity-between-Lasso-and-SVM Duality structure between Lasso and SVM In this post, we reveal a striking connection...
-
Github How to run Python online Using Github + MyBinder You first upload your Python script and a Jupyter notebook ...
-
Duality in Optimization Duality in Optimization This post provides references for a collection of duality results in o...
-
MNIST_classification_with_Pytorch_NN MNIST Classification using PyTorch’s Neural Network 1. Introduction 1.1. MNIST D...
-
Solving Elastic-Net problem Solving Elastic-Net problem using Proximal Gradient Descent The Python code of this post i...
-
measure-text-in-Typst Adaptive Table Layout in Typst Based on Sentence Length Goal We have four sentences and want to...