Closed sweep-ai[bot] closed 9 months ago
MLBPredictor/Model/Player.swift
β
Check MLBPredictor/Model/Player.swift with contents:
Ran GitHub Actions for d935881d019f0c7cb613c1f25d1e9c3b011b1ac2:
MLBPredictor/Model/Pitcher.swift
β
Check MLBPredictor/Model/Pitcher.swift with contents:
Ran GitHub Actions for cc2c7cfe099c2abd43089a8b93db725dfc146a7d:
MLBPredictor/Model/Hitter.swift
β
Check MLBPredictor/Model/Hitter.swift with contents:
Ran GitHub Actions for bdf69c04a72d746c71caddb955d80ae9768ded19:
MLBPredictor/Model/VideoAnalysis.swift
β
Check MLBPredictor/Model/VideoAnalysis.swift with contents:
Ran GitHub Actions for 8365694d7a49b788e6835295313af640fbed5e17:
MLBPredictor/Model/Biomechanics.swift
β
Check MLBPredictor/Model/Biomechanics.swift with contents:
Ran GitHub Actions for 887b40b55895b461baf74254345cccac59f11c25:
MLBPredictor/SupportingFiles/AppDelegate.swift
β
Check MLBPredictor/SupportingFiles/AppDelegate.swift with contents:
Ran GitHub Actions for 02ceaa6208b5ede462f0fc69a7b279d656355822:
MLBPredictor/SupportingFiles/SceneDelegate.swift
β
Check MLBPredictor/SupportingFiles/SceneDelegate.swift with contents:
Ran GitHub Actions for 63bb273ecd7a53543c51adeb4ded9e01e6002255:
PR Feedback (click)
Description
This pull request implements logic for classes and functions in the MLBPredictor project. It includes changes to the Biomechanics, Hitter, Pitcher, Player, and VideoAnalysis structs, as well as the AppDelegate and SceneDelegate classes.
Summary
init(from prediction: MLFeatureValue)
method has been updated to interpret the MLFeatureValue prediction and initialize the Biomechanics properties. Default values have been set for thebatAngle
andstrideLength
properties.predictPerformance(using model: AIModel)
method that returns the predicted performance of the hitter using the AIModel.predictPerformance(using model: AIModel)
method that returns the predicted performance of the pitcher using the AIModel. Additionally, a new protocolAIModel
and a structPerformancePrediction
have been added to support the prediction functionality.analyzePerformance(with model: AIModel)
method that uses the AIModel to predict the performance of the player. Additional logic can be implemented to analyze the predicted performance.processObservations(_ observations: [VNRecognizedPointsObservation])
method that processes the observations to generate a Biomechanics object. Placeholder code has been added to simulate processing and creating a Biomechanics object. Actual logic needs to be implemented to process VNRecognizedPointsObservations and populate Biomechanics properties.Fixes #3.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can: