Skip to content
Dr James Froggatt
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact
Menu Close
  • Website security (& ethical hacking)
  • Web programming services
  • Website development
  • Prices
  • Blog
  • Contact

Lists and Arrays

Splitting arrays

  • Post author:admin
  • Post published:February 3, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

There are many different ways to split arrays, but commonly this method is used in creating training and testing sets in neural networks. from numpy import array a = array([[1,2,3,4,5],[6,7,8,9,10],[11,12,13,14,15],[16,17,18,19,20]])…

Continue ReadingSplitting arrays

Numpy reshape() and arange()

  • Post author:admin
  • Post published:January 29, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

Just learning about these numpy functions that are useful in array manipulation (and creation). np.arrange The arange() function from numpy creates numeric sequences. It's syntax is as follows: np.arrange (start,…

Continue ReadingNumpy reshape() and arange()

Normalising training and test data for neural networks

  • Post author:admin
  • Post published:January 28, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

A common mistake when using neural networks it would seem is to separately normalise training and test data. The following codes demonstrate how, as far as I know, this should…

Continue ReadingNormalising training and test data for neural networks

Comparing values in a numpy array – all() and any()

  • Post author:admin
  • Post published:January 27, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

import numpy as np # create a 2 dimentional array and put some values in myData = np.array([[1.1, 2.2, 3.3], [4.4, 5.5, 6.6]]) print (myData.shape) print (myData[0,1]) print (myData[1,1]) if…

Continue ReadingComparing values in a numpy array – all() and any()

Normalizing and denormalizing data

  • Post author:admin
  • Post published:January 25, 2019
  • Post category:Lists and Arrays/Manipulating CSV files/Python and Neural Networks
  • Post comments:0 Comments

Given the following code: # import required to process csv files with pandas import pandas as pd #for array manipulation import numpy as np # use pandas to import a…

Continue ReadingNormalizing and denormalizing data

Preparing data for an LSTM network

  • Post author:admin
  • Post published:January 24, 2019
  • Post category:Lists and Arrays/Manipulating CSV files/Python and Neural Networks
  • Post comments:0 Comments

In this post I'm going to be working out and learning out preparing data for LSTM networks, particularly data with several features. With LSTM networks we are able to deal…

Continue ReadingPreparing data for an LSTM network

LSTM Networks 1D 2D 3D arrays explained

  • Post author:admin
  • Post published:January 22, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

The input to every LSTM network layer must be 3D. But what does this mean? Let's consider a sequence of multiple time steps with 1 feature. This could be a…

Continue ReadingLSTM Networks 1D 2D 3D arrays explained

Python lists and arrays

  • Post author:admin
  • Post published:January 20, 2019
  • Post category:Lists and Arrays/Python and Neural Networks
  • Post comments:0 Comments

Lists and arrays in Python are quite similar but they're certainly not the same. Let's create a list and an array in python and see the differences. Creating a list…

Continue ReadingPython lists and arrays

Search

Recent

  • Make grass than bends September 24, 2022
  • Making a png sprite map in InkScape (for later use in Javascript Game or any other game) September 24, 2022
  • Setting up node JS September 21, 2022

Categories

  • AJAX
  • Android Development
    • Activities and Intents
    • Android Examples
    • Big Nerd Ranch Notes
    • Fragments
    • Program Anatomy
  • CSS
  • GIT
  • HTML
  • Inkscape
  • Installations
    • VBulletin5
    • Wordpress
    • XAMPP
  • Java
    • "this" keyword
    • Abstract Classes & Interfaces
    • Arrays
    • Class Files
      • Abstract classes & methods
      • Final
      • Public, private, this
      • Static
      • Time Class
    • Compostition
    • Conditional operators
    • Constructors
      • Basics
      • Overloading Constructors
    • Decision statements
    • Enumeration
    • Inheritance
    • Inner classes
    • Interfaces
    • Java GUI
    • Java I/O
    • Keywords
      • Static
      • Super
    • Loops
    • Math Operators
    • Methods
      • Implicit & Explicit Parameters
      • Overloading
      • Overriding
      • Static Methods
      • Substring()
      • toString
    • Object Reference Preservation
    • Objects
      • Basics
      • Examples
    • Reference Types vs Primitive Types
    • Simple Programs
    • Specific Concepts
    • Variables
      • Basic Variables
      • Static variables
      • Variable Scope
  • Javascript
    • NodeJS
  • Javascript HTML DOM
  • Metatrader
  • Miscellaneous
    • Cooking recipes
    • DIY E-liquids
    • Go Pro 2
    • Holidays
    • Oakham School
    • Out and about on Android
    • Survivors Manchester
    • Trading
    • Wordle
    • Wordpress Stuff
  • Notepad++
  • PHP Programming
    • PHP Objects
    • PHP security
  • PMF
  • Python and Neural Networks
    • Latex
    • Lists and Arrays
    • Manipulating CSV files
    • Neural Network Notation
    • Sigmoids and tan
  • React and Node.js
  • SQL & Databases
    • SQL Specifics
    • World Map Manipulation

Copyright James Froggatt 2017-2020