Une introduction à la programmation Python

Un mémorandum pour faire le programme

table des matières

1.Tout d'abord 2. Environnement d'exploitation 3. Corps

1.Tout d'abord

Puisque cet article oublie ce que j'ai appris, le but est d'améliorer la capacité à expliquer mes propres choses tout en fixant ce que j'ai appris en l'écrivant sous forme de mémorandum dans cet article. Je veux faire diverses choses que Python peut faire, donc je n'ai pas décidé de balises autres que Python.

2. Environnement d'exploitation

--windows 10 (ordinateur portable)

3. Corps

Sites auxquels j'ai fait référence lors de la lecture [github][https://github.com/oreilly-japan/deep-learning-from-scratch]

Chapitre 1 Introduction à Python Vous trouverez ici les opérations de base de python à partir de l'installation de python et des explications sur des bibliothèques telles que Numpy et Matplotlib.

Chapitre 2 Perceptron Le Perceptron reçoit une pluralité de signaux et délivre un signal en fonction du contenu. Le signal de sortie y est le signal d'entrée x1, x2, le poids w1, w2 et le seuil θ.

f(x) = \left\{
\begin{array}{ll}
1 & (w1x1+w2x2\geq θ) \\
0 & (w1x1+w2x2 \lt θ)
\end{array}
\right.

Peut être exprimé comme. De plus, la porte ET, la porte NAND et la porte OU sont montées à l'aide de Perceptron.

def AND(x1,x2):
    w1,w2,theta=0.5,0.5,0.7
    tmp=x1*w1+x2*w2
    if tmp>theta:
        return 1
    else:
        return 

En utilisant une matrice, cela devient comme suit.

import numpy as np
def AND(x1,x2):
    w=np.array([0.5,0.5])
    x=np.array([x1,x2])
    b=-0.7
    tmp=np.sum(w*x)+b
    if tmp>0:
        return 1
    else:
        return 0

Si vous entrez les valeurs appropriées (x1, x2) = (0,0), (0,1), (1,1), (1,0) pour x1, x2

a=AND(0,0)
b=AND(0,1)
c=AND(1,1)
d=AND(1,0)
print(a,b,c,d)

>> 0 0 1 0

On peut voir qu'il fonctionne correctement. Édition dans le futur

Recommended Posts

Une introduction à la programmation Python
[Introduction à Python3 Jour 1] Programmation et Python
Premiers pas avec Python pour les non-ingénieurs
[Tutoriel Python] Une introduction facile à Python
Introduction au langage Python
Introduction à OpenCV (python) - (2)
Une introduction à Python pour l'apprentissage automatique
Une introduction à Python pour les programmeurs en langage C
Qu'est-ce qu'un algorithme? Introduction à l'algorithme de recherche] ~ Python ~
Introduction à Python "Re" 1 Construction d'un environnement d'exécution
Introduction à la programmation (Python) TA Tendency pour les débutants
AOJ Introduction à la programmation Sujet 1, Sujet 2, Sujet 3, Sujet 4
Introduction à Private TensorFlow
Une introduction à l'apprentissage automatique
AOJ Introduction à la programmation Sujet n ° 7, Sujet n ° 8
Introduction à la communication série [Python]
[Introduction à Python] <liste> [modifier le 22/02/2020]
Introduction à l'optimisation bayésienne
Introduction à Python pour, pendant
Introduction au traitement parallèle distribué Python par Ray
Note de lecture: Introduction à l'analyse de données avec Python
[Présentation de l'application Udemy Python3 +] 58. Lambda
[Présentation de l'application Udemy Python3 +] 31. Commentaire
Introduction à la bibliothèque de calcul numérique Python NumPy
Une introduction à Mercurial pour les non-ingénieurs
Entraine toi! !! Introduction au type Python (conseils de type)
[Introduction à Python] <numpy ndarray> [modifier le 22/02/2020]
[Présentation de l'application Udemy Python3 +] 57. Décorateur
Introduction à Python Hands On Partie 1
[Introduction à Python3 Jour 13] Chapitre 7 Chaînes de caractères (7.1-7.1.1.1)
[Introduction à Python] Comment analyser JSON
[Présentation de l'application Udemy Python3 +] 56. Clôture
[Introduction à Python3 Jour 14] Chapitre 7 Chaînes de caractères (7.1.1.1 à 7.1.1.4)
Introduction à Protobuf-c (langage C ⇔ Python)
[Présentation de l'application Udemy Python3 +] 59. Générateur
[Introduction à Python3 Jour 15] Chapitre 7 Chaînes de caractères (7.1.2-7.1.2.2)
[Introduction à Python] Utilisons les pandas
[Introduction à Python] Utilisons les pandas
[Introduction à l'application Udemy Python3 +] Résumé
Introduction à l'analyse d'image opencv python
[Introduction à Python] Utilisons les pandas
Introduction à Python Django (2) Édition Mac
Une alternative à `pause` en Python
[AWS SAM] Présentation de la version Python
[Introduction à Python3 Day 21] Chapitre 10 Système (10.1 à 10.5)
Introduction à Python que même les singes peuvent comprendre (partie 3)
Une introduction à la programmation fonctionnelle pour améliorer l'efficacité du débogage en 1 minute
Introduction à Python que même les singes peuvent comprendre (partie 1)
Introduction à Python que même les singes peuvent comprendre (partie 2)
Introduction à MQTT (Introduction)
Introduction à Scrapy (1)
[Introduction à Udemy Python3 + Application] 18. Méthode List
[Introduction à Udemy Python3 + Application] 63. Notation d'inclusion du générateur
Introduction à Scrapy (3)
Mis à jour vers Python 2.7.9
[Introduction à l'application Udemy Python3 +] 28. Type collectif
[Introduction à Python] Comment utiliser la classe en Python?
Premiers pas avec Supervisor
Note de programmation Python
Système de notation IPynb réalisé avec TA d'introduction à la programmation (Python)