Generalized Nets and Machine Learning