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)
Sunday, February 14, 2021
IPythonWidget
Popular Posts
-
Biconjugate_Theorem Biconjugate theorem for convex functions 1. Notations Let X X X be a vector space. Let X ∗ X^* ...
-
Solving Elastic-Net problem Solving Elastic-Net problem using Proximal Gradient Descent The Python code of this post i...
-
luatex Using LuaTeX: Minimal Examples Authors: Tran Thu Le, Chat GPT 3.5 1. Introduction LuaTeX is an extension of ...
-
Sparse_KL Solving L1-Penalization of Kullback-Leibler Divergence using SMART Algorithm Author: Tran Thu Le Date: 7/...
-
Duality in Optimization Duality in Optimization This post provides references for a collection of duality results in o...
-
Chambolle_Pock Chambolle-Pock Algorithm for Solving LASSO This note aims at showing how to solve LASSO by using Chambo...
-
plot_convex_set_2 Plotting Region defined by Inequality Constraints in Python (Part 2) Author: Tran Thu Le Date: 5/...
-
Latex_commands_using_LuaTex Creating Stable LaTeX Commands with Underscores and Dots using LuaTeX 1. Motivation In La...
-
Solving blasso with gradient method Solving Blasso problem using gardient descent method Let us consider a very simple...
-
KL Projection using Cvxpy Python Kullback_Leibler Projection using Python package Cvxpy This post shows you how to sol...