Pure Software code
 
www.puresoftwarecode.com

SOFTWARE Institute
Teach YourSelf
125 Software Programming Training Courses
For Free Download


CHRISTIANITY Institute
HUMANITIES Institute
Art Institute

All more the 500 Subjects, All for Free Download.
Lebanon  
Python Programming Courses
Software Institute /  Machine Learning   
 
  Home : Software Institute : Python ML Page 3 Home

Python ML Pages   -   1    2    3    4   5    6             

1  Py-LM-DivPlot Python program, 2D Surface plotting used data from .CSV file
2  Py-LM-3d Python program, 3D Surface plotting
3  Py-LM-3d2dAdam Python program, to implement the gradient descent optimization algorithm with Adam
2D and 3D Ploting
 
 
1-  Py-LM-DivPlot Python program, 2D Surface plotting used data from .CSV file
 
  1. Py-LM-DivPlot Python program, , 2D Surface plotting used data from .CSV file
    • the Visualizing data through bar plot
    • the Visualizing data through Line Solid plot
    • the Visualizing data through Line(Solid)-Grid plot
    • the Visualizing data through Line(Dashed)-Marker plot
    • the Visualizing data through Scatter plot
    • the Visualizing data through pie plot
    • the Visualizing Random values through Hitogram plot
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: Py-LM-DivPlot
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - Py-LM-DivPlot
      • Projct Folder: C:\Users\...\source\repos\Py-LM-DivPlot
      • Startup File: Py_LM_DivPlot.py
      • Project file: Py-LM-DivPlot.sln
    3. Download Python Project : Py-LM-DivPlot.zip - (16.4 KB zip file)   Download
    4. Project consist of:
       One Python Form - (Py_LM_DivPlot.py )
     Important: winequality-N1.csv file - it is part of Py-LM-DivPlot.zip
    Download Python Project : Py-LM-DivPlot.zip - (16.4 KB zip file)   Download             
    winequality-N1.csv file - it is part of Py-LM-DivPlot.zip                          ;

     

  4. Install pandas, matplotlib and csv  in Python on Windows Operating System, Using Command Prompt
     
     1- Install pandas in Python on Windows Operating System, Using Command Prompt
           pip install pandas
     
    2- Install matplotlib in Python on Windows Operating System, Using Command Prompt
     Step 1 - Run the Command Prompt on Windows Operating System:
                  
                  
    Command Prompt is an application on most Windows computers that directly communicates with the operating system
                   How to
    open the Command Prompt:  Press the Windows key + r. In the Run box, type cmd, and then click Ok.

     
     Step 2 - install matplotlib
                    In the Command prompt, use the following pip command to install the matplotlib library
                   
    pip install matplotlib                

     
     3- Install csv in Python on Windows Operating System, Using Command Prompt
           pip install csv
     
     
  5. Source Code of Python Project Py-LM-DivPlot:

    Download this Source Code at python  file: Py_LM_DivPlot.py  - (2.35 KB Python file)   download  

      Py-LM-DivPlot Python program, 2D Surface plotting used data from .CSV file
     
     
  6. Debug of Python Project Py-LM-DivPlot, 0 Errors 
     
     
  7. Output of Python Project Py-LM-DivPlot:
     
    • 24 values of inequalityN1.csv file of Columns (Quality and Alcohol)
     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - bar plot

     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - Line Solid plot

     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - Line(Solid)-Grid plot
     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - Line(Dashed)-Marker plot

     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - Scatter plot

     
    • the Visualizing data of .cvs file of Columns (Quality and Alcohol), 24 values - pie plot

     
    • Random values -  Hitogram plot

   
   
2-  Py-LM-3d Python program, 3D Surface plotting
 
  1. Py-LM- Python program, 3D Surface plotting
    3D Surface plotting in Python using Matplotlib, A Surface Plot is a representation of three-dimensional dataset. used to create 3D surface plots Functions:
    • Plot with grid values
    • Plot with averaged values
    • 3D Plot Projections
    • 3D surface having 2D contour plot projections
    • Surface plot
    • 3D surface ...
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: Py-LM-3d
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - Py-LM-3d
      • Projct Folder: C:\Users\...\source\repos\Py-LM-3d
      • Startup File: Py_LM_3d.py
      • Project file: Py-LM-3d.sln
    3. Download Python Project : Py-LM-3d.zip - (13.1 KB zip file)   Download
    4. Project consist of:
       One Python Form - (Py_LM_3d.py )

     

    Download Python Project : Py-LM-3d.zip - (13.1 KB zip file)   Download    

     

  4. Install matplotlib and numpy in Python on Windows Operating System, Using Command Prompt
     
     1- Install matplotlib in Python on Windows Operating System, Using Command Prompt
     Step 1 - Run the Command Prompt on Windows Operating System:
                  
                  
    Command Prompt is an application on most Windows computers that directly communicates with the operating system
                   How to
    open the Command Prompt:  Press the Windows key + r. In the Run box, type cmd, and then click Ok.

     
     Step 2 - install matplotlib
                    In the Command prompt, use the following pip command to install the matplotlib library
                   
    pip install matplotlib                

     
     2- Install numpy in Python on Windows Operating System, Using Command Prompt
           pip install numpy
     
     
  5. Source Code of Python Project Py-LM-3d:

    Download this Source Code at python  file: Py_LM_3d.py  - (5.98 KB Python file)   download  

      Py-LM-3d Python program, 3D Surface plotting
     
     
  6. Debug of Python Project Py-LM-3d, 0 Errors 
     
     
  7. Output of Python Project Py-LM-3d:
     
    • Print list of values ...

     
    • Plot with grid values

     
     
    • Plot with averaged values

     

    • 3D Plot Projections

     

     
    • 3D surface having 2D contour plot projections

     

     
    • Surface plot

     
    • 3D surface ...

     

   
   
   
3-  Py-LM-3d2dAdam Python program, to implement the gradient descent optimization algorithm with Adam.
 
  1. Py-LM-3d2dAdam- Python program,  to implement the gradient descent optimization algorithm with Adam.
    We will use a simple two-dimensional function that squares the input of each dimension and define the range of valid inputs,
    # objective function
    def objective(x, y):
         return x**2.0 + y**2.0
    • creates a three-dimensional surface plot of the objective function.
    • create a two-dimensional plot of the function, creates a contour plot of the objective function
     
  2. Create a new Python project In Visual Studio 2022
    1. the Microsoft Visual Studio (... or 2019 or 2022) is a powerful IDE for Python language
    2. Open/Run Microsoft Visual Studio 2022
    3. To view Python templates, search for python.
       Select the Python Application template, and select Next.
    4. Create a new Python project In Visual Studio 2022
              On the Configure your new project screen  -   (specify a name and file location for the project, and then select Create)
              Project name: Py-LM-3d2dAdam
              Location: C:\Users\...\source\repos    (default location for
      Visual Studio 2022)
       


  3. The new project opens in Visual Studio 2022  - (Visual Studio 2022 Compiler - IDE, to compile Python project / file )
    1. The Visual Studio Solution Explorer window shows the project structure
    2. Python Project Properieties - Py-LM-3d2dAdam
      • Projct Folder: C:\Users\...\source\repos\Py-LM-3d2dAdam
      • Startup File: Py_LM_3d2dAdam.py
      • Project file: Py-LM-3d2dAdam.sln
    3. Download Python Project : Py-LM-3d2dAdam.zip - (10.2 KB zip file)   Download
    4. Project consist of:
       One Python Form - (Py_LM_3d2dAdam.py )

     

    Download Python Project : Py-LM-3d2dAdam.zip - (10.2 KB zip file)   Download    

     

  4. Install matplotlib and numpy in Python on Windows Operating System, Using Command Prompt
     
    1- Install matplotlib in Python on Windows Operating System, Using Command Prompt
     Step 1 - Run the Command Prompt on Windows Operating System:
                  
                  
    Command Prompt is an application on most Windows computers that directly communicates with the operating system
                   How to
    open the Command Prompt:  Press the Windows key + r. In the Run box, type cmd, and then click Ok.

     
     Step 2 - install matplotlib
                    In the Command prompt, use the following pip command to install the matplotlib library
                   
    pip install matplotlib                

     
     2- Install numpy in Python on Windows Operating System, Using Command Prompt
           pip install numpy
     
     
  5. Source Code of Python Project Py-LM-3d2dAdam:

    Download this Source Code at python  file: Py_LM_3d2dAdam.py  - (1.87 KB Python file)   download  

      Py-LM-3d2dAdam Python program, to implement the gradient descent optimization algorithm with Adam
     
     
  6. Debug of Python Project Py-LM-3d2dAdam, 0 Errors 
     
     
  7. Output of Python Project Py-LM-3d2dAdam:
     
     
    • the Visualizing data through bar plot

     

    • 3D surface plot of the objective function -- x**2.0 + y**2.0

    • 2D plot of the objective function -- x**2.0 + y**2.0

     

 
 

Python ML Pages   -   1    2    3    4   5    6      

 
 www.puresoftwarecode.com  :  CHRISTIANITY Institute  HUMANITIES Institute  ART Institute & Others
 SOFTWARE Institute - "All Courses Free"    History of the MARONITES in Arabic  Basilica Architecture, in the Shape of a Cross

 Python, Teach yourSelf  Programs in 6 pages

 Holy BIBLE in 22 Languages and Studies ...  Le HANDICAP c'est quoi ?   (in French)  
 Machine Learning Projects in Python - 12 samples  220 Holy Christian ICONS  Drugs and Treatment in English, french, Arabic  Old Traditional Lebanese houses
 Opencv Python Projects with Source Code - 7 samples  Catholic Syrian MARONITE Church   Classification of Wastes from the Source in Arabic  5 DRAWING Courses & 3 Galleries
 Matplotlib in Python Projects - 4 samples  HOLY MASS of  Maronite Church - Audio in Arabic  Christianity in the Arabian Peninsula in Arabic  Meteora, Christianity Monasteries - En, Ar, Fr
 VISUAL STUDIO 2019, C# Programs, in English  VIRGIN MARY, Mother of JESUS CHRIST GOD  Summary of the Lebanese history in Arabic  Monasteries of Mount Athos & Pilgrimage
   SAINTS of the Church  LEBANON EVENTS 1840 & 1860, in Arabic  Carved Rock Churches, Lalibela - Ethiopia
VISUAL STUDIO 2010 in English  Saint SHARBEL - Sharbelogy in 10 languages, Books  Great FAMINE in LEBANON 1916,  in Arabic   4 Different STUDIES
 VISUAL STUDIO .NET, Windows & ASP in En  Catholic RADIO in Arabic, Sawt el Rab  Great FAMINE and Germny Role 1916,  in Arabic   SOLAR Energy & Gas Studies
 VISUAL STUDIO 6.0 in English  Saint SHARBEL Family - Evangelization  Armenian Genocide 1915  in Arabic  Personal Protective Equipment
 Microsoft ACCESS in English  Читать - БИБЛИЯ и Шарбэль cвятой, in Russe  Sayfo or Assyrian Genocide 1915 in Arabic  WELCOME to LEBANON
   Apparitions of  Virgin Mary - Ar  Christianity in Turkey in Arabic  YAHCHOUCH, my Lebanese Village
 PHP & MySQL in English  Neocatechumenal Way   Prononce English and French and Arabic Letters  ZOUEIN, my Family - History & Trees
 SOFTWARE GAMES in English  Holy BIBLE, for the Maronite Liturgical Year    About, my PRODUCTS, and Statistiques ...
 WEB DESIGN in English  Holy BIBLE, according to Maronite Calendar, (2023)  Yahchouch Social Statistical Cultural Project  Traffic Statistics 2025 of PureSoftwareCode.com
 JAVA SCRIPT in English  Holy BIBLE, Online Translation in 133 Languages    Site Map of  PureSoftwareCode.com
 FLASH - ANIMATION in English      REPORT, Cyber Attack Attacks the Current Site
 PLAY, 5 GAMES  Andree Zouein Foundation  GIGI  L'AMOROSO Fashion and Jewellery  Josette Zoueïn. Psychanalyste Psychologue
 Multi-Functional 4 Wheel Drive Robot Car  CARLOS SLIM HELU Site, New Design  Saadeh Bejjane Architecture  Hermez Steel, Steel  Decor Artwork
      Chucri Simon Zouein, Computer engineer
     
echkzouein@gmail.com
© pure software code - Since 2003