Machine learning programming PSD