The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

Constraint/tell neural network only certain outputs possible?

CurtiszCurtisz Member Posts: 4 Contributor I
edited February 2022 in Help
I am trying to build a supervised learning model that predicts the best move for a simplified game similar to tic-tac-toe (i.e. 3 in a row). I created a sample data set where I supplied the best move in form of the integer to play.  

Of course, only some outputs (unused spaces) are valid outputs.  Is it possible to "tell the NN" that only some outputs are valid in a given situation or constrain the output in some way?  Perhaps changing from regression to classification problem but it still doesn't solve that only some outputs should be valid for any given input (i.e. the free squares). 

I guess if one were to use this implementation in an "actual game" you could do a post-processing step where if the predicted move is invalid to default to a valid guess. Still, it feels like being able to provide constraints should be natural.

I do not think this is possible, in any regards.
Sign In or Register to comment.