An accurate and flexible neural network(NN)-based I-V model for SiC MOSFET is created in this paper. The technique starts with the generating TCAD simulation of close to 200 SiC MOSFETs with variations in key physical parameters. Compact model formulations and their parameters are automatically generated from the variations in the TCAD simulations using machine learning techniques. The NN-based compact model is then trained using 78k data points using the TCAD simulated data. The unphysical behavior of NN-based compact models having a negative gm and gD, causing convergence issues during circuit simulation is also tackled for the first time. The fully trained NN-based compact model results show good accuracy with the fitting I-V, gm and gD for multiple devices. The developed NN-based is then converted to a standard Verilog-A file which can be imported into a circuit simulator.