In Game Programming Language

So I have programmed a Neural Network class for the player to create their own Ais and train them etc…
But what I want to do now is to allow the user to enter their inputs and outputs within these networks, so is there any way to program within Unity and have it run?
–Just a note I am writing in c#–

The fastest solution I can think of is to include a JavaScript engine in your project, so that players can write JavaScript. There are a number of good ones that run on .NET, but I can personally attest that Jurassic is very good. (It takes some effort to get working in Unity, but the Unify community has already done that work for you here)

Other honorable mentions include Jint, Clearscript, and V8DotNet.