I was doing homework for my pre calculus class that consisted of classifying different types of trig functions and their graphs. I figured that I could use machine learning to create a model that would be able to identify the different types of functions when the graph was shown. I started with creating a model with google teachable machines. I created a class for each different type of trig function. Then, I exported that model into the p5.js, an online java script IDE. After the model was exported, I wrote code that displayed a video that would record what graph was being shown, and would display text that said what trig function the graph was.
Java script code:
Model:
Output:
Video: