Skip to content

Latest commit

 

History

History

python code

First Steps with PyCharm

Open PyCharm Create new project "ANN3-1", then define the directory

  • for the project
  • for Python interpreter

Click on Name of project just created "ANN3-1", then From "File" choose new then Python File "ANN3-1Simple"

  • On the Bottom left click "Python Console"
  • Write 3+4, then press "Enter", the console will evaluate the line
  • Write:
    a=3
    a+4
  • Then start writting in the Python File (The main window of PyCharm)
  • Write:
    a=3
    print(a+4)
  • Then Right click on the name of the file and then click Run"ANN3-1Simple"

Add a library

Go to "File" then "Settings"

  • In the Settings window, Under "Project: SimpleANN", Choose Project Interpreter
  • If needed Clisk on "Install packaging tools"
  • Then press "+" on the top right side
  • search for and select "numpy"
  • then "Install package" on the bottom left

Good to know, Short-cuts:

  • Ctrl + F : find within the file
  • Ctrl + Shift + C : History of changes
  • Ctrl + D : Duplicate line
  • #todo ... : Add in the todo tab on the bottom left a list of items todo
  • Alt + Click : Select rectangle
  • Ctrl Alt T : Creates functions automatically

Debug

  • Add the Breakpoint by clicking next to Line numbers of the files
  • Click on the 'Green Bug' on the top right side
  • To continue Press the Green arrow of type 'step-by-step' on the debugger window, bottom-left side
  • Press Alt + Shift + F7 (step into my code) to go on step by step

Other

Needs Tensorflow https://clusterone.com/tutorials/tune-neural-net-hyperparam