Documentation ¶
Index ¶
- Constants
- Variables
- func AnalyzeSensorData(s models.SensorData) (aidata models.LocationAnalysis, err error)
- func Calibrate(family string, crossValidation ...bool) (err error)
- func Debug(debugMode bool)
- func Dump(family string) (err error)
- func GenerateImages(family string)
- func GetByLocation(family string, minutesAgoInt int, showRandomized bool, activeMinsThreshold int, ...) (byLocations []models.ByLocation, err error)
- func GetGPSData(family string) (gpsData map[string]models.SensorData, err error)
- func GetImage(family, location string) (img []byte, err error)
- func SavePrediction(s models.SensorData, p models.LocationAnalysis) (err error)
- func SaveSensorData(p models.SensorData) (err error)
- type AnalysisResponse
- type Pair
- type PairList
- type UpdateCounterMap
Constants ¶
View Source
const ( MaxIdleConnections int = 20 RequestTimeout int = 300 )
Variables ¶
View Source
var AIPort = "8002"
AIPort designates the port for the AI processing
View Source
var DataFolder = "."
View Source
var MainPort string
Functions ¶
func AnalyzeSensorData ¶
func AnalyzeSensorData(s models.SensorData) (aidata models.LocationAnalysis, err error)
func Calibrate ¶
Calibrate will send the sensor data for a specific family to the machine learning algorithms
func GenerateImages ¶
func GenerateImages(family string)
func GetByLocation ¶
func GetGPSData ¶
func GetGPSData(family string) (gpsData map[string]models.SensorData, err error)
GetGPSData returns the latest GPS data
func SavePrediction ¶
func SavePrediction(s models.SensorData, p models.LocationAnalysis) (err error)
SavePrediction will add sensor data to the database
func SaveSensorData ¶
func SaveSensorData(p models.SensorData) (err error)
SaveSensorData will add sensor data to the database
Types ¶
type AnalysisResponse ¶
type AnalysisResponse struct { Data models.LocationAnalysis `json:"analysis"` Message string `json:"message"` Success bool `json:"success"` }
Click to show internal directories.
Click to hide internal directories.