 .    
Samael Blackart


   ,  .      ,  ,    .        :     .  ,   ,   CNN, RNN  Self-Attention,      Python.  ,     .   ,    .





 

   



Samael Blackart



 Samael Blackart, 2026



ISBN 978-5-0070-7357-8

     Ridero




 

   


  :  .  2

: Samael Blackart







    ,    .       ,  ,    .

    - ,    .   ,       :

 - 

  

     

  

   -      .      ,    .    ,         - .

    (PyTorch, TensorFlow, GPT, Claude, Gemini, BERT  .)   -       .

      .



 Samael Blackart, 2026

  






   


       .  ,     ,   .  ,   ,         .

     .  ,   .    ,   .

     ,  ,   .         .     (      ,  ,  ),     .    ,   .

    .

     .    - (    ).     ,    ,       .

   : ,    ,    10   ,    .

  .  ,  .   ,      ,  -  .   ,     ,      .   ,      ,   ,       .

      .   .




   


   4 ,    :

 I.  ( 13)

    :   , ,  .  ,     .  ,    .

 II.  ( 47)

 .    : , , , .    ,  ,    , .

 III.  ( 810)

  ?    ?    ?        ?      ,    ,   .

 IV.  ( 1112)

     Python. ,      .



 



       :       .   ,    .

    ,       .        ,   .            .

   :

     (, ,    )

      ( ,  )

      ( ,  )

     (  ,  )

       .      ,   .




   


 :

   1   

 ,   ,   

 ,     -

 ,   

   ,  ,   

    .

     .  ,   ,    ,    .      ,   .

           A      .



    



    :

  ,    

     CNN, RNN  

      Python

      

  ,   ,    

        

   ?  .




 I. 





 1

   :   


     ,  ,   .         ,   .

        .  ,        .        .



 :  



     86  .     ,    ,     .

  :

    .     .

   ()   .

    .   .

     .   ,       .

  :

1.        .

2.      ( ).

3.     .

4.              .

5.       .

.       :  + .

? .   86      , , , .      .



  : 1943 



 1943             .  :        ?

: .

   :

   N : x1, x2, , xN

      ( ): w1, w2, , wN

    : S = w1*x1 + w2*x2 +  + wN*xN

  S   T    1 ()

  S  T    0 ( )

     .  -.



  :



,   ,     .     :

   (x1 = 1,  ; 0,  )

    (x2 = 1  0)

    (x3 = 1  0)

   .      (w1 = 0.5).     (w2 = 0.3).     (w3 = 0.4).

:

S = 0.5*1 +0.3*1 +0.4*1 = 1.2

   T = 1.0,  1.2> 1.0,     .

   (x1 = 0):

S = 0.5*0 +0.3*1 +0.4*1 = 0.7

0.7 <1.0    .

   .  +  +  + .

  .    .         ,     .



   :  ,  



        :

   ( ,   ,  )

  (  20 ,    )

      (  - )

  :

   (     )

  (     )

  (       )

  (    )

   :     .    .    .   ,  ,  ,   .



   



     ?

-,    .        .    ,   :    ,    ,  .    ,      .

-,    .   ,    ,     :  ,  ,   ,  . ,   ,     .

-,       .    , ,    ,   .      ,     -.



 



 1.1:   

    . :

    

   

    

:

   ()  ? ( 3)

     ? (   )

      ?

   5  .   ?   ?




 2

:   


       .    : .

      .  .  .         .     .

   :

    

    Python  

 ,   ,   

     



 :   



    .

 .    .   ,   .         :   ,   .

  .      :  .   . 1  0.    .    .

     .     .  ,     .      .    ,    .



 



  :

 : x1, x2, , xN

 : w1, w2, , wN

  (bias): b

 : S = w1*x1 + w2*x2 +  + wN*xN + b

  : y = f (S)

 (x1, x2, , xN):

 ,    .       :      ?,   ?,    ?  . .

 (w1, w2, , wN):

    .  ,       .         .          .          .

 (bias, b):

   .     ,      .

 :

    .      :

  S> = 0,  y = 1

  S <0,  y = 0



 



   .

   ( : x1  x2).         .

      : w1*x1 + w2*x2 + b = 0.

        1.        0.

      ,      .

    .       .

 :      XOR ( ).     1969 ,         15 .

?    XOR    ,    1   0.     .      .



:     Python



    .    .  .



#   

# : 

import numpy as np



class Perceptron:

"

  .

   .

"

def __init__ (self, input_size, learning_rate=0.01):

"

 .

:

 input_size:  

 learning_rate:  

"

#      -1  1

self. weights = np. random. randn (input_size)

#   

self.bias = 0.0

#  

self.lr = learning_rate



def activate (self, x):

"

  .

 1,  x> = 0,  0.

"

return 1 if x> = 0 else 0



def predict (self, inputs):




  .


   .

   ,     (https://www.litres.ru/pages/biblio_book/?art=74283452)  .

      Visa, MasterCard, Maestro,    ,   ,     ,  PayPal, WebMoney, ., QIWI ,       .


