Download the procedure file Student-sim-anneal-2014.ipf and adopt the code, which contains the function sas().

Similar documents
Introduction to ANSYS DesignXplorer

Unit 10: Data Structures CS 101, Fall 2018

ENGG1811: Data Analysis using Spreadsheets Part 1 1

Administrivia. Next Monday is Thanksgiving holiday. Tuesday and Wednesday the lab will be open for make-up labs. Lecture as usual on Thursday.

Hill Climbing. Assume a heuristic value for each assignment of values to all variables. Maintain an assignment of a value to each variable.

Learning and Generalization in Single Layer Perceptrons

ELECTRICAL SPECIFICATIONS**

Predicting Diabetes using Neural Networks and Randomized Optimization

HOW TO READ AN ELECTRONIC SIGN

PSpice Tutorial. Physics 160 Spring 2006

PT6104. Multi-Cell Li-ion Battery Pack Charger controller FEATURES GENERAL DESCRIPTION APPLICATIONS TYPICAL APPLICATION DIAGRAM

Local Search (Greedy Descent): Maintain an assignment of a value to each variable. Repeat:

GHz db Min db Max Max: Phase Balance. .053±.011 [1.35±0.27] Pin ±.004 [3.05±0.10] Pin 3

Non-deterministic Search techniques. Emma Hart

Assignment 2 in Simulation of Telesystems Laboratory exercise: Introduction to Simulink and Communications Blockset

II-13Category Plots. Chapter II-13

Introduction to Artificial Intelligence 2 nd semester 2016/2017. Chapter 4: Beyond Classical Search

LAB 2: DATA FILTERING AND NOISE REDUCTION

ELECTRICAL SPECIFICATIONS**

1 Background and Introduction 2. 2 Assessment 2

LAB 2: DATA FILTERING AND NOISE REDUCTION

1 of 8 2/7/2014 7:52 AM

Single Dimensional Data. How can computation pick best data values? Or, turn math into searching? How is this Multi-Dimensional Data?

PRODUCT SPECIFICATION

2nd Year Computational Physics Week 1 (experienced): Series, sequences & matrices

Agenda. ! Efficient Coding Hypothesis. ! Response Function and Optimal Stimulus Ensemble. ! Firing-Rate Code. ! Spike-Timing Code

ELECTRICAL SPECIFICATIONS** Frequency. Power Handling. Directivity. .064±.013 [1.64±0.33] Pin ±.004 [3.05±0.10] Pin 3

Load dump test: Old vs new ISO standards

Lab Practical - Limit Equilibrium Analysis of Engineered Slopes

Computing With R Handout 1

Supervised Learning in Neural Networks (Part 2)

Here is the data collected.

BOSS. Quick Start Guide For research use only. Blackrock Microsystems, LLC. Blackrock Offline Spike Sorter. User s Manual. 630 Komas Drive Suite 200

Lesson 13: The Graph of a Linear Equation in Two Variables

Fitting Experimental Cyclic Voltammetry Data with Theoretical Simulations Using DigiSim 2.1

Using DataQuest on a Handheld

INTRODUCTION TO MATLAB, SIMULINK, AND THE COMMUNICATION TOOLBOX

Recap Randomized Algorithms Comparing SLS Algorithms. Local Search. CPSC 322 CSPs 5. Textbook 4.8. Local Search CPSC 322 CSPs 5, Slide 1

Computing With R Handout 1

Artificial Intelligence

Geology 554 Interpretation Project Big Injun Sand, Trenton/Black River Plays, Central Appalachian Basin, WV

Modify Panel. Flatten Tab

ENCM 339 Fall 2017 Lecture Section 01 Lab 9 for the Week of November 20

Getting started. Starting Capture. To start Capture. This chapter describes how to start OrCAD Capture.

The Automation of the Feature Selection Process. Ronen Meiri & Jacob Zahavi

Graphing on Excel. Open Excel (2013). The first screen you will see looks like this (it varies slightly, depending on the version):

INF Biologically inspired computing Lecture 1: Marsland chapter 9.1, Optimization and Search Jim Tørresen

Design and Performance Analysis of and Gate using Synaptic Inputs for Neural Network Application

Section 4 Ground-Fault Protection Devices

CZRB5338B-HF Thru. CZRB5388B-HF Voltage: 5.1V to 200V Power: 5 W RoHS Device Halogen Free

TPC digitization and track reconstruction: efficiency dependence on noise

Section 1.1 The Distance and Midpoint Formulas

CH142 Spring Spectrophotometers with Vernier Data Acquisition Software

Numerical Methods Lecture 7 - Optimization

Verification and Validation of Turbulent Flow around a Clark-Y Airfoil

Lab 4: Determining temperature from a temperature sensor

PRODUCT SPECIFICATION

EK307 Lab: Microcontrollers

AM 221: Advanced Optimization Spring 2016

Verification of Laminar and Validation of Turbulent Pipe Flows

Random Search Report An objective look at random search performance for 4 problem sets

W7 DATA ANALYSIS 2. Your graph should look something like that in Figure W7-2. It shows the expected bell shape of the Gaussian distribution.

Introduction to Programming

Stephen Scott.

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Lecture 15: The Details of Joins

MPV1060RI4. Ultra Wide Input, Compact Industrial Grade, PV Power DC/DC Con vert ers. Key Features:

KTH ROYAL INSTITUTE OF TECHNOLOGY. Lecture 14 Machine Learning. K-means, knn

3 Perceptron Learning; Maximum Margin Classifiers

Statistics Lecture 6. Looking at data one variable

Today s class. Roots of equation Finish up incremental search Open methods. Numerical Methods, Fall 2011 Lecture 5. Prof. Jinbo Bi CSE, UConn

2.1: Frequency Distributions

Using Graphical Analysis This exercise will familiarize you with using Graphical Analysis in Beer s Law and kinetics.

XI040C110V054BPT1 Brand Name XITANIUM XITANIUM 40W A 54V 0-10V w/t

Hans van de Weijgert

The Fly & Anti-Fly Missile

[1] CURVE FITTING WITH EXCEL

LC-1: Interference and Diffraction

The lecture focused on how to explore, clean and describe the data upon completion of running your studies.

PFE-S SERIES Single Output AC-DC Power Module UL / EN60950 Low Voltage Directive CSA C22.2 No Features Model naming method

Başkent University Department of Electrical and Electronics Engineering EEM 214 Electronics I Experiment 5

An Experimental Problem of a Competition Discussed in a Secondary School Workshop

Plotting Graphs. Error Bars

Graphical Analysis of Data using Microsoft Excel [2016 Version]

Fall 09, Homework 5

Exploring Parametric Equations With the Human Cannonball

Welcome to Microsoft Excel 2013 p. 1 Customizing the QAT p. 5 Customizing the Ribbon Control p. 6 The Worksheet p. 6 Excel 2013 Specifications and

Local Search and Optimization Chapter 4. Mausam (Based on slides of Padhraic Smyth, Stuart Russell, Rao Kambhampati, Raj Rao, Dan Weld )

Artificial Neural Networks

From Motion diagrams to Position and Velocity Graphs

SystemVue 2011 Fundamentals (version ) LAB EXERCISE 1. SystemVue Basics

Modeling and Prototypes

Radial Basis Function Networks

Deep Neural Networks Optimization

Flow Sim. Chapter 16. Airplane. A. Enable Flow Simulation. Step 1. If necessary, open your ASSEMBLY file.

Image segmentation using an annealed Hopfield neural network

Introduction to IgorPro

Type WEL0603 WEL0805 WEL1206 WEL2010 WEL2512 WEL4320 WEL4527. Type A - Short Side Electrode

III-7Analysis. Chapter III-7

Curve Fitting Igor Pro compared with pro Fit

Transcription:

LAB 5 - Simulated Annealing 214 Introduction. In this lab you will write a program for simulated annealing. You will test the program on a one-dimensional fitness surface with multiple local maxima. In addition you will use this surface to study the effects of various annealing parameters on search efficiency. You will then adapt the code to optimize a neural network to oscillate. EXERCISE 1 Download the procedure file Student-sim-anneal-214.ipf and adopt the code, which contains the function sas(). On the left is the flow chart I presented in lecture. It is an Initialize network or neuron (X = X1, X2, X3 ) Make N noisy copies of X Compute performance of each copy Move to point X oversimplification. For example, the code doesn t make and store N copies of the parent network before testing. Rather, each of the copies is created and tested before the next one is made.make a more accurate and detailed flow-chart of the program an include it in your lab report. Where possible, use variable names as specified in the code. Concentrate on the initialization and for-loops. Omit variable declarations. Don t worry too much about the format of the diagram. The purpose of this exercise is to encourage you to understand the code before using it (always a good practice). EXERCISE 2 The goal of simulated annealing is to maximize the performance of a model relative to a fitness function defined over the model parameters you are seeking to optimize. In Exercise 3, you will apply sas() to a one-dimensional problem in which you seek the value of X that

maximizes the output of a function called fitnessfunction(). But first you must write code that implements the function, which is the product of m and n: m = 1+ cos(.4v) 2 n = exp( v 2 /(2)) Paste your function into your lab report. EXERCISE 3 Display the fitness surface. To do this, make the wave fitness with 1 points starting at x = -5 and ing at x = 5 (using Data > Change Wave Scaling). Set the y-values in fitness to the corresponding value of the fitnessfunction(). Display fitness and include the graph in your lab report. It should look like this: 2. 1.5 Fitness 1..5. -4-2 X value EXERCISE 4 Run the sas() with an initial X value of 25 and an initial temperature of 1. To see the trajectory of the annealing algorithm along the fitness surface, apptograph to the fitness graph a trace of "fithistory vs testxvaluehistory. Double click this trace to get to the Modify Trace appearance Dialog. Select Set as f(z), Color as f(z), and choose the wave called mycolor. You should see the simulation stuck on the local maximum that is second from the right. Include the graph in your lab report. Report the probability of finding the peak of the fitness curve sas(25, 1). Slowly increase the temperature until you find the peak about 9% of the time. Report this value and explain its significance in terms of the relationship between the search radius and the dimensions of the width of the fitness curve. 2 4 2. 1.5 Fitness 1..5. -4-2 X value 2 4

EXERCISE 5 Another informative graph is the plot of all the intermediate best fitnesses versus iteration number. Make this plot simply by displaying maxfithistory. Include the graph in your lab report. EXERCISE 6 [Optional 214] Complete the table below by running simulation 2 times with each of 1 different values of temp shown. Plot number of failures vs temperature and number of iterations to reach the peak vs temperature. Describe and explain any trs you find. Initial temperature Number of failures Mean number of iteration to reach the peak* 1 5 1 5 1 5 1 5 1 5 * Successful runs only. EXERCISE 7 Use your annealer to search for values of the synaptic threshold parameter and the weight parameter in the neural network of Exercise 7 in the lab Dynamical Neurons (Week 7 214). A working version of this code is provided in the file Student-sim-anneal-214.ipf. The goal

of this exercise is to search parameter space defined by weight and parameter using simulated annealing in an attempt to get the network to oscillate. To do this: (1) Modify the sas() function so that it searches so that it searches for weight and threshold rather than Xvalue. For assistance in this process, repair the // FIXME // statements in the function sas7() contained in this lab s Igor procedure file (see above). (2) Write a function that operates on the voltage time series of one of the neurons in your network and returns a numerical value that represents the extent to which the network is oscillating. Insert this code into the body of the function netfit(), found in the Igor procedure file. You might the Igor function wavestats() useful in this regard (look it up in Help > Command Help). It computes wave averages, standard deviations, max and min values, etc. Here are some examples of how to use the wavestats() function: Function sd() // Compute standard deviation from 5 to 1 ms return V_sdev Function av() //Compute average from 5 to 1 ms return V_avg Function mn() // Find minimum from 5 to 1 ms return V_min Function mx() // Find maximum from 5 to 1 ms return V_max Include your netfit() function in your lab report. Any oscillation will do, but strive for one that occurs in the range -1 to -7 mv, as shown in the figure. If you get an oscillation, report the weight and threshold values you found and include a graph. [[ 215: Draw a circuit diagram ]]. 1-1 -2 V V1 V2 mv -3-4 -5-6 2 4 t (ms) 6 8 1

Appix Example of flow chart: