The basis of this idea was inspired by some work that can be found in the paper Varley et al (2005). The idea is to use spreadsheets as a tool for teaching neural networks. These approaches were developed for the teaching of these approaches and the videos were recorded in a class whilst teaching the concept. Both Excel and Google Sheets have been tried in all three of the approaches.
1. Creating a single neuron
The idea was to use a spreadsheet to replicate the neuron. The idea was to get the students to build the neuron step by step, starting with the inputs, then the weights, then the weighted sum and threshold for a simple neuron. Personally, I like the approach for two reasons; firstly the concept that only a single set of weights is used is sneaked in, the second is builds all the stages up gradually and visually.
Video below shows the building of the model and it's use.
2. Training a single neuron.
This approach extends the ideas from the approach above, quickly building a single neuron, but expands into training a neuron. Cutting and pasting the blocks to show the idea of epochs.
Training is via the delta rule (change in the weight [x] = learning coefficient * input [x] * (what output we wanted - actual output from the neuron). I like the approach because it seems to show the weights being arrived at in a very mechanical way by repeating actions - machine learning is not magic!
The video below shows the stages.
3. Building a simple Neural Network
Previously only a single neuron was produced. In this approach, the ideas from build a neuron in Excel activity are extended to three neurons connected in the same worksheet. The exercise then connects the outputs from two neurons (which have a common input) as the inputs of a third neuron building an XOR gate (which a single simple neuron can not implement). The video below shows all of the stages.
4. Where next?
It would be nice to extend the idea further to have the training of a simple neural network above. If anyone manages this please add the link into the comments.
Bibliography
VARLEY, M; PEAK, M; HEYS, J; COLLINS, G; KONSTANTARAS A, VALLIANATOS, F; PICTON P (2005) Spreadsheet Software as a Teaching Tool for Concepts in Electronic Engineering, [Online] http://www.wseas.us/e-library/conferences/2005athens/ee/papers/507-162.pdf accessed on: 20/2/2016
Turner, S. J. (2017) Experience of using spreadsheets as a bridge in the understanding of AI techniques. Paper presented to: 13th China Europe Symposium on Software Engineering Education (CEISEE), Athens, Greece, 24-25 May 2017.
All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with
All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with. Twitter: @scottturneruon
Computing within Northamptonshire is dynamic with interests in many aspects of computing and engineering. All views are the author and the site is the property of the author.
Showing posts with label Training. Show all posts
Showing posts with label Training. Show all posts
Wednesday, 4 April 2018
Wednesday, 30 November 2016
Miniproject: Using Scratch to build and train a neuron
1. Single Neurone
Instructions:
- Set the inputs by pressing the buttons marked input 1 and input 2 (Red is off(False or 0) and Green is on(True or 1))
- Change the weights by changing weights 1 to 3, wx goes with input x and weight 3 is the bias.
- To activate the neuron you need to click on the the yellow ball ('the neuron').
The video below show it in action and explains the code.
To see the code go to https://scratch.mit.edu/projects/131892234/ .
2. Training a Neurone
In this part, the training of a neuron all written in Scratch is tackled. The video shows it action and you can have a go at using the software yourself at the end of the post. The Scratch code can be found at https://scratch.mit.edu/projects/132915502/
All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with. Twitter @scottturneruonAll views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with. Twitter: @scottturneruon
Tuesday, 5 April 2016
Game based cyber security training: are serious games suitable for cyber security training?
- Game based cyber security training: are serious games suitable for cyber security training? (Maurice Hendrix, Ali Al-Sherbaz, Bloom Victoria), In International Journal of Serious Games, volume 3, pp. 53--61, 2016.
Security research and training is attracting a lot of investment and interest from governments and the private sector. Most efforts have focused on physical security, while cyber security or digital security has been given less importance. With recent high-profile attacks it has become clear that training in cyber security is needed. Serious Games have the capability to be effective tools for public engagement and behavioural change and role play games, are already used by security professionals. Thus cyber security seems especially well-suited to Serious Games.
This paper investigates whether games can be effective cyber security training tools. The study is conducted by means of a structured literature review supplemented with a general web search.
While there are early positive indications there is not yet enough evidence to draw any definite conclusions. There is a clear gap in target audience with almost all products and studies targeting the general public and very little attention given to IT professionals and managers. The products and studies also mostly work over a short period, while it is known that short-term interventions are not particularly effective at affecting behavioural change.
For more details go to http://journal.seriousgamessociety.org/index.php?journal=IJSG&page=article&op=view&path[]=107
If you'd like to find out more about Computing at the University of Northampton go to: www.computing.northampton.ac.uk. All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with
Saturday, 20 February 2016
Teaching Basics of Neural Networks with Spreadsheets
The basis of this idea was inspired by some work that can be found in the paper Varley et al (2005).
In these videos examples of using spreadsheets to play with the concepts of neurones are shown. These approaches were developed for the teaching of these approaches and the videos were recorded in a class whilst teaching the concept.
Video 1
Using a spreadsheet to replicate the neurone. Video shows the building of the model and it's use.
Video 2
This video extends the ideas from video 1 and expands them into training a neurone.
Using a spreadsheet to show the delta rule (change in the weight [x] = learning coefficient * input [x] * (what output we wanted - actual output from the neuron) being used to training the weights for a neurone.
VARLEY, M; PEAK, M; HEYS, J; COLLINS, G; KONSTANTARAS A, VALLIANATOS, F; PICTON P (2005) Spreadsheet Software as a Teaching Tool for Concepts in Electronic Engineering, [Online] http://www.wseas.us/e-library/conferences/2005athens/ee/papers/507-162.pdf accessed on: 20/2/2016
All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with
In these videos examples of using spreadsheets to play with the concepts of neurones are shown. These approaches were developed for the teaching of these approaches and the videos were recorded in a class whilst teaching the concept.
Video 1
Using a spreadsheet to replicate the neurone. Video shows the building of the model and it's use.
Video 2
This video extends the ideas from video 1 and expands them into training a neurone.
Using a spreadsheet to show the delta rule (change in the weight [x] = learning coefficient * input [x] * (what output we wanted - actual output from the neuron) being used to training the weights for a neurone.
VARLEY, M; PEAK, M; HEYS, J; COLLINS, G; KONSTANTARAS A, VALLIANATOS, F; PICTON P (2005) Spreadsheet Software as a Teaching Tool for Concepts in Electronic Engineering, [Online] http://www.wseas.us/e-library/conferences/2005athens/ee/papers/507-162.pdf accessed on: 20/2/2016
All views and opinions are the author's and do not necessarily reflected those of any organisation they are associated with
Monday, 4 April 2011
CEISE2011 paper: Software Industry and Talents Cultivation in China
An abstract from the 7th China – Europe International Symposium on Software Industry Orientated Education to be held 23-24th May 2011 at School of Science and Technology, University of Northampton, UK. For more details can be found at this link.
Software College of Northeastern University , China
Software Industry and Talents Cultivation in China
Chen Dongming, Zhu Zhiliang
Abstract
As the backbone and representative of the present high-tech industry, the information industry serves as the strategic pillar industry of China in this century. By analyzing the present state, characteristics, and development routes of China's software industry, this study will find out the problem and then provide solutions to China’s IT industry, especially the software industry. Education and training for software talents cultivation will also be talked about here.
Proceedings can be found at: http://www.web-sustainablity.net/conference/GreenConferenceBook.pdf
Proceedings can be found at: http://www.web-sustainablity.net/conference/GreenConferenceBook.pdf
Subscribe to:
Posts (Atom)

