training

package
v16.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package training implements the Azure ARM Training service API version 1.2.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Training
	DefaultBaseURI = "https://southcentralus.api.cognitive.microsoft.com/customvision/v1.2/Training"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type APIKeys

type APIKeys struct {
	TrainingKeys   *KeyPair `json:"TrainingKeys,omitempty"`
	PredictionKeys *KeyPair `json:"PredictionKeys,omitempty"`
}

APIKeys ...

type Account

type Account struct {
	autorest.Response `json:"-"`
	// UserName - Gets the name of the account owner
	UserName *string `json:"UserName,omitempty"`
	// Email - Gets the email associated with this account
	Email *string `json:"Email,omitempty"`
	// Keys - Gets the api keys associated with this account
	Keys *APIKeys `json:"Keys,omitempty"`
	// Quotas - Gets the quotas associated with this account
	Quotas *AccountQuota `json:"Quotas,omitempty"`
}

Account represents a user account

type AccountQuota

type AccountQuota struct {
	// Tier - Gets the tier of user
	Tier *string `json:"Tier,omitempty"`
	// Projects - Gets the project quota
	Projects *Quota `json:"Projects,omitempty"`
	// Predictions - Gets the prediction quota
	Predictions *Quota `json:"Predictions,omitempty"`
	// PerProject - Gets a list of quotas that apply per-project for each project
	PerProject *[]PerProjectQuota `json:"PerProject,omitempty"`
}

AccountQuota represents a set of quotas assocated with an account

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI string
	APIKey  string
}

BaseClient is the base client for Training.

func New

func New(aPIKey string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, aPIKey string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) CreateImagesFromData

func (client BaseClient) CreateImagesFromData(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []string) (result ImageCreateSummary, err error)

CreateImagesFromData this API accepts body content as multipart/form-data and application/octet-stream. When using multipart multiple image files can be sent at once, with a maximum of 64 files Parameters: projectID - the project id tagIds - the tags ids with which to tag each image. Limited to 20

func (BaseClient) CreateImagesFromDataPreparer

func (client BaseClient) CreateImagesFromDataPreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, tagIds []string) (*http.Request, error)

CreateImagesFromDataPreparer prepares the CreateImagesFromData request.

func (BaseClient) CreateImagesFromDataResponder

func (client BaseClient) CreateImagesFromDataResponder(resp *http.Response) (result ImageCreateSummary, err error)

CreateImagesFromDataResponder handles the response to the CreateImagesFromData request. The method always closes the http.Response Body.

func (BaseClient) CreateImagesFromDataSender

func (client BaseClient) CreateImagesFromDataSender(req *http.Request) (*http.Response, error)

CreateImagesFromDataSender sends the CreateImagesFromData request. The method will close the http.Response Body if it receives an error.

func (BaseClient) CreateImagesFromFiles

func (client BaseClient) CreateImagesFromFiles(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (result ImageCreateSummary, err error)

CreateImagesFromFiles sends the create images from files request. Parameters: projectID - the project id batch - the batch of image files to add. Limited to 64 images and 20 tags per batch

func (BaseClient) CreateImagesFromFilesPreparer

func (client BaseClient) CreateImagesFromFilesPreparer(ctx context.Context, projectID uuid.UUID, batch ImageFileCreateBatch) (*http.Request, error)

CreateImagesFromFilesPreparer prepares the CreateImagesFromFiles request.

func (BaseClient) CreateImagesFromFilesResponder

func (client BaseClient) CreateImagesFromFilesResponder(resp *http.Response) (result ImageCreateSummary, err error)

CreateImagesFromFilesResponder handles the response to the CreateImagesFromFiles request. The method always closes the http.Response Body.

func (BaseClient) CreateImagesFromFilesSender

func (client BaseClient) CreateImagesFromFilesSender(req *http.Request) (*http.Response, error)

CreateImagesFromFilesSender sends the CreateImagesFromFiles request. The method will close the http.Response Body if it receives an error.

func (BaseClient) CreateImagesFromPredictions

func (client BaseClient) CreateImagesFromPredictions(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (result ImageCreateSummary, err error)

CreateImagesFromPredictions sends the create images from predictions request. Parameters: projectID - the project id batch - image and tag ids. Limted to 64 images and 20 tags per batch

func (BaseClient) CreateImagesFromPredictionsPreparer

func (client BaseClient) CreateImagesFromPredictionsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageIDCreateBatch) (*http.Request, error)

CreateImagesFromPredictionsPreparer prepares the CreateImagesFromPredictions request.

func (BaseClient) CreateImagesFromPredictionsResponder

func (client BaseClient) CreateImagesFromPredictionsResponder(resp *http.Response) (result ImageCreateSummary, err error)

CreateImagesFromPredictionsResponder handles the response to the CreateImagesFromPredictions request. The method always closes the http.Response Body.

func (BaseClient) CreateImagesFromPredictionsSender

func (client BaseClient) CreateImagesFromPredictionsSender(req *http.Request) (*http.Response, error)

CreateImagesFromPredictionsSender sends the CreateImagesFromPredictions request. The method will close the http.Response Body if it receives an error.

func (BaseClient) CreateImagesFromUrls

func (client BaseClient) CreateImagesFromUrls(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (result ImageCreateSummary, err error)

CreateImagesFromUrls sends the create images from urls request. Parameters: projectID - the project id batch - image urls and tag ids. Limited to 64 images and 20 tags per batch

func (BaseClient) CreateImagesFromUrlsPreparer

func (client BaseClient) CreateImagesFromUrlsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageURLCreateBatch) (*http.Request, error)

CreateImagesFromUrlsPreparer prepares the CreateImagesFromUrls request.

func (BaseClient) CreateImagesFromUrlsResponder

func (client BaseClient) CreateImagesFromUrlsResponder(resp *http.Response) (result ImageCreateSummary, err error)

CreateImagesFromUrlsResponder handles the response to the CreateImagesFromUrls request. The method always closes the http.Response Body.

func (BaseClient) CreateImagesFromUrlsSender

func (client BaseClient) CreateImagesFromUrlsSender(req *http.Request) (*http.Response, error)

CreateImagesFromUrlsSender sends the CreateImagesFromUrls request. The method will close the http.Response Body if it receives an error.

func (BaseClient) CreateProject

func (client BaseClient) CreateProject(ctx context.Context, name string, description string, domainID *uuid.UUID) (result Project, err error)

CreateProject sends the create project request. Parameters: name - name of the project description - the description of the project domainID - the id of the domain to use for this project. Defaults to General

func (BaseClient) CreateProjectPreparer

func (client BaseClient) CreateProjectPreparer(ctx context.Context, name string, description string, domainID *uuid.UUID) (*http.Request, error)

CreateProjectPreparer prepares the CreateProject request.

func (BaseClient) CreateProjectResponder

func (client BaseClient) CreateProjectResponder(resp *http.Response) (result Project, err error)

CreateProjectResponder handles the response to the CreateProject request. The method always closes the http.Response Body.

func (BaseClient) CreateProjectSender

func (client BaseClient) CreateProjectSender(req *http.Request) (*http.Response, error)

CreateProjectSender sends the CreateProject request. The method will close the http.Response Body if it receives an error.

func (BaseClient) CreateTag

func (client BaseClient) CreateTag(ctx context.Context, projectID uuid.UUID, name string, description string) (result Tag, err error)

CreateTag sends the create tag request. Parameters: projectID - the project id name - the tag name description - optional description for the tag

func (BaseClient) CreateTagPreparer

func (client BaseClient) CreateTagPreparer(ctx context.Context, projectID uuid.UUID, name string, description string) (*http.Request, error)

CreateTagPreparer prepares the CreateTag request.

func (BaseClient) CreateTagResponder

func (client BaseClient) CreateTagResponder(resp *http.Response) (result Tag, err error)

CreateTagResponder handles the response to the CreateTag request. The method always closes the http.Response Body.

func (BaseClient) CreateTagSender

func (client BaseClient) CreateTagSender(req *http.Request) (*http.Response, error)

CreateTagSender sends the CreateTag request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeleteImageTags

func (client BaseClient) DeleteImageTags(ctx context.Context, projectID uuid.UUID, imageIds []string, tagIds []string) (result autorest.Response, err error)

DeleteImageTags sends the delete image tags request. Parameters: projectID - the project id imageIds - image ids. Limited to 64 images tagIds - tags to be deleted from the specified images. Limted to 20 tags

func (BaseClient) DeleteImageTagsPreparer

func (client BaseClient) DeleteImageTagsPreparer(ctx context.Context, projectID uuid.UUID, imageIds []string, tagIds []string) (*http.Request, error)

DeleteImageTagsPreparer prepares the DeleteImageTags request.

func (BaseClient) DeleteImageTagsResponder

func (client BaseClient) DeleteImageTagsResponder(resp *http.Response) (result autorest.Response, err error)

DeleteImageTagsResponder handles the response to the DeleteImageTags request. The method always closes the http.Response Body.

func (BaseClient) DeleteImageTagsSender

func (client BaseClient) DeleteImageTagsSender(req *http.Request) (*http.Response, error)

DeleteImageTagsSender sends the DeleteImageTags request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeleteImages

func (client BaseClient) DeleteImages(ctx context.Context, projectID uuid.UUID, imageIds []string) (result autorest.Response, err error)

DeleteImages sends the delete images request. Parameters: projectID - the project id imageIds - ids of the images to be deleted. Limted to 256 images per batch

func (BaseClient) DeleteImagesPreparer

func (client BaseClient) DeleteImagesPreparer(ctx context.Context, projectID uuid.UUID, imageIds []string) (*http.Request, error)

DeleteImagesPreparer prepares the DeleteImages request.

func (BaseClient) DeleteImagesResponder

func (client BaseClient) DeleteImagesResponder(resp *http.Response) (result autorest.Response, err error)

DeleteImagesResponder handles the response to the DeleteImages request. The method always closes the http.Response Body.

func (BaseClient) DeleteImagesSender

func (client BaseClient) DeleteImagesSender(req *http.Request) (*http.Response, error)

DeleteImagesSender sends the DeleteImages request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeleteIteration

func (client BaseClient) DeleteIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result autorest.Response, err error)

DeleteIteration sends the delete iteration request. Parameters: projectID - the project id iterationID - the iteration id

func (BaseClient) DeleteIterationPreparer

func (client BaseClient) DeleteIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)

DeleteIterationPreparer prepares the DeleteIteration request.

func (BaseClient) DeleteIterationResponder

func (client BaseClient) DeleteIterationResponder(resp *http.Response) (result autorest.Response, err error)

DeleteIterationResponder handles the response to the DeleteIteration request. The method always closes the http.Response Body.

func (BaseClient) DeleteIterationSender

func (client BaseClient) DeleteIterationSender(req *http.Request) (*http.Response, error)

DeleteIterationSender sends the DeleteIteration request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeletePrediction

func (client BaseClient) DeletePrediction(ctx context.Context, projectID uuid.UUID, ids []string) (result autorest.Response, err error)

DeletePrediction sends the delete prediction request. Parameters: projectID - the project id ids - the prediction ids. Limited to 64

func (BaseClient) DeletePredictionPreparer

func (client BaseClient) DeletePredictionPreparer(ctx context.Context, projectID uuid.UUID, ids []string) (*http.Request, error)

DeletePredictionPreparer prepares the DeletePrediction request.

func (BaseClient) DeletePredictionResponder

func (client BaseClient) DeletePredictionResponder(resp *http.Response) (result autorest.Response, err error)

DeletePredictionResponder handles the response to the DeletePrediction request. The method always closes the http.Response Body.

func (BaseClient) DeletePredictionSender

func (client BaseClient) DeletePredictionSender(req *http.Request) (*http.Response, error)

DeletePredictionSender sends the DeletePrediction request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeleteProject

func (client BaseClient) DeleteProject(ctx context.Context, projectID uuid.UUID) (result autorest.Response, err error)

DeleteProject sends the delete project request. Parameters: projectID - the project id

func (BaseClient) DeleteProjectPreparer

func (client BaseClient) DeleteProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)

DeleteProjectPreparer prepares the DeleteProject request.

func (BaseClient) DeleteProjectResponder

func (client BaseClient) DeleteProjectResponder(resp *http.Response) (result autorest.Response, err error)

DeleteProjectResponder handles the response to the DeleteProject request. The method always closes the http.Response Body.

func (BaseClient) DeleteProjectSender

func (client BaseClient) DeleteProjectSender(req *http.Request) (*http.Response, error)

DeleteProjectSender sends the DeleteProject request. The method will close the http.Response Body if it receives an error.

func (BaseClient) DeleteTag

func (client BaseClient) DeleteTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (result autorest.Response, err error)

DeleteTag sends the delete tag request. Parameters: projectID - the project id tagID - id of the tag to be deleted

func (BaseClient) DeleteTagPreparer

func (client BaseClient) DeleteTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID) (*http.Request, error)

DeleteTagPreparer prepares the DeleteTag request.

func (BaseClient) DeleteTagResponder

func (client BaseClient) DeleteTagResponder(resp *http.Response) (result autorest.Response, err error)

DeleteTagResponder handles the response to the DeleteTag request. The method always closes the http.Response Body.

func (BaseClient) DeleteTagSender

func (client BaseClient) DeleteTagSender(req *http.Request) (*http.Response, error)

DeleteTagSender sends the DeleteTag request. The method will close the http.Response Body if it receives an error.

func (BaseClient) ExportIteration

func (client BaseClient) ExportIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string) (result Export, err error)

ExportIteration sends the export iteration request. Parameters: projectID - the project id iterationID - the iteration id platform - the target platform (coreml or tensorflow)

func (BaseClient) ExportIterationPreparer

func (client BaseClient) ExportIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, platform string) (*http.Request, error)

ExportIterationPreparer prepares the ExportIteration request.

func (BaseClient) ExportIterationResponder

func (client BaseClient) ExportIterationResponder(resp *http.Response) (result Export, err error)

ExportIterationResponder handles the response to the ExportIteration request. The method always closes the http.Response Body.

func (BaseClient) ExportIterationSender

func (client BaseClient) ExportIterationSender(req *http.Request) (*http.Response, error)

ExportIterationSender sends the ExportIteration request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetAccountInfo

func (client BaseClient) GetAccountInfo(ctx context.Context) (result Account, err error)

GetAccountInfo sends the get account info request.

func (BaseClient) GetAccountInfoPreparer

func (client BaseClient) GetAccountInfoPreparer(ctx context.Context) (*http.Request, error)

GetAccountInfoPreparer prepares the GetAccountInfo request.

func (BaseClient) GetAccountInfoResponder

func (client BaseClient) GetAccountInfoResponder(resp *http.Response) (result Account, err error)

GetAccountInfoResponder handles the response to the GetAccountInfo request. The method always closes the http.Response Body.

func (BaseClient) GetAccountInfoSender

func (client BaseClient) GetAccountInfoSender(req *http.Request) (*http.Response, error)

GetAccountInfoSender sends the GetAccountInfo request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetDomain

func (client BaseClient) GetDomain(ctx context.Context, domainID uuid.UUID) (result Domain, err error)

GetDomain sends the get domain request. Parameters: domainID - the id of the domain to get information about

func (BaseClient) GetDomainPreparer

func (client BaseClient) GetDomainPreparer(ctx context.Context, domainID uuid.UUID) (*http.Request, error)

GetDomainPreparer prepares the GetDomain request.

func (BaseClient) GetDomainResponder

func (client BaseClient) GetDomainResponder(resp *http.Response) (result Domain, err error)

GetDomainResponder handles the response to the GetDomain request. The method always closes the http.Response Body.

func (BaseClient) GetDomainSender

func (client BaseClient) GetDomainSender(req *http.Request) (*http.Response, error)

GetDomainSender sends the GetDomain request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetDomains

func (client BaseClient) GetDomains(ctx context.Context) (result ListDomain, err error)

GetDomains sends the get domains request.

func (BaseClient) GetDomainsPreparer

func (client BaseClient) GetDomainsPreparer(ctx context.Context) (*http.Request, error)

GetDomainsPreparer prepares the GetDomains request.

func (BaseClient) GetDomainsResponder

func (client BaseClient) GetDomainsResponder(resp *http.Response) (result ListDomain, err error)

GetDomainsResponder handles the response to the GetDomains request. The method always closes the http.Response Body.

func (BaseClient) GetDomainsSender

func (client BaseClient) GetDomainsSender(req *http.Request) (*http.Response, error)

GetDomainsSender sends the GetDomains request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetExports

func (client BaseClient) GetExports(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result ListExport, err error)

GetExports sends the get exports request. Parameters: projectID - the project id iterationID - the iteration id

func (BaseClient) GetExportsPreparer

func (client BaseClient) GetExportsPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)

GetExportsPreparer prepares the GetExports request.

func (BaseClient) GetExportsResponder

func (client BaseClient) GetExportsResponder(resp *http.Response) (result ListExport, err error)

GetExportsResponder handles the response to the GetExports request. The method always closes the http.Response Body.

func (BaseClient) GetExportsSender

func (client BaseClient) GetExportsSender(req *http.Request) (*http.Response, error)

GetExportsSender sends the GetExports request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetIteration

func (client BaseClient) GetIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (result Iteration, err error)

GetIteration sends the get iteration request. Parameters: projectID - the id of the project the iteration belongs to iterationID - the id of the iteration to get

func (BaseClient) GetIterationPerformance

func (client BaseClient) GetIterationPerformance(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold float64) (result IterationPerformance, err error)

GetIterationPerformance sends the get iteration performance request. Parameters: projectID - the project id iterationID - the id of the trained iteration threshold - the 0 to 1 threshold to determine positive prediction

func (BaseClient) GetIterationPerformancePreparer

func (client BaseClient) GetIterationPerformancePreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, threshold float64) (*http.Request, error)

GetIterationPerformancePreparer prepares the GetIterationPerformance request.

func (BaseClient) GetIterationPerformanceResponder

func (client BaseClient) GetIterationPerformanceResponder(resp *http.Response) (result IterationPerformance, err error)

GetIterationPerformanceResponder handles the response to the GetIterationPerformance request. The method always closes the http.Response Body.

func (BaseClient) GetIterationPerformanceSender

func (client BaseClient) GetIterationPerformanceSender(req *http.Request) (*http.Response, error)

GetIterationPerformanceSender sends the GetIterationPerformance request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetIterationPreparer

func (client BaseClient) GetIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID) (*http.Request, error)

GetIterationPreparer prepares the GetIteration request.

func (BaseClient) GetIterationResponder

func (client BaseClient) GetIterationResponder(resp *http.Response) (result Iteration, err error)

GetIterationResponder handles the response to the GetIteration request. The method always closes the http.Response Body.

func (BaseClient) GetIterationSender

func (client BaseClient) GetIterationSender(req *http.Request) (*http.Response, error)

GetIterationSender sends the GetIteration request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetIterations

func (client BaseClient) GetIterations(ctx context.Context, projectID uuid.UUID) (result ListIteration, err error)

GetIterations sends the get iterations request. Parameters: projectID - the project id

func (BaseClient) GetIterationsPreparer

func (client BaseClient) GetIterationsPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)

GetIterationsPreparer prepares the GetIterations request.

func (BaseClient) GetIterationsResponder

func (client BaseClient) GetIterationsResponder(resp *http.Response) (result ListIteration, err error)

GetIterationsResponder handles the response to the GetIterations request. The method always closes the http.Response Body.

func (BaseClient) GetIterationsSender

func (client BaseClient) GetIterationsSender(req *http.Request) (*http.Response, error)

GetIterationsSender sends the GetIterations request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetProject

func (client BaseClient) GetProject(ctx context.Context, projectID uuid.UUID) (result Project, err error)

GetProject sends the get project request. Parameters: projectID - the id of the project to get

func (BaseClient) GetProjectPreparer

func (client BaseClient) GetProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)

GetProjectPreparer prepares the GetProject request.

func (BaseClient) GetProjectResponder

func (client BaseClient) GetProjectResponder(resp *http.Response) (result Project, err error)

GetProjectResponder handles the response to the GetProject request. The method always closes the http.Response Body.

func (BaseClient) GetProjectSender

func (client BaseClient) GetProjectSender(req *http.Request) (*http.Response, error)

GetProjectSender sends the GetProject request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetProjects

func (client BaseClient) GetProjects(ctx context.Context) (result ListProject, err error)

GetProjects sends the get projects request.

func (BaseClient) GetProjectsPreparer

func (client BaseClient) GetProjectsPreparer(ctx context.Context) (*http.Request, error)

GetProjectsPreparer prepares the GetProjects request.

func (BaseClient) GetProjectsResponder

func (client BaseClient) GetProjectsResponder(resp *http.Response) (result ListProject, err error)

GetProjectsResponder handles the response to the GetProjects request. The method always closes the http.Response Body.

func (BaseClient) GetProjectsSender

func (client BaseClient) GetProjectsSender(req *http.Request) (*http.Response, error)

GetProjectsSender sends the GetProjects request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetTag

func (client BaseClient) GetTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (result Tag, err error)

GetTag sends the get tag request. Parameters: projectID - the project this tag belongs to tagID - the tag id iterationID - the iteration to retrieve this tag from. Optional, defaults to current training set

func (BaseClient) GetTagPreparer

func (client BaseClient) GetTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)

GetTagPreparer prepares the GetTag request.

func (BaseClient) GetTagResponder

func (client BaseClient) GetTagResponder(resp *http.Response) (result Tag, err error)

GetTagResponder handles the response to the GetTag request. The method always closes the http.Response Body.

func (BaseClient) GetTagSender

func (client BaseClient) GetTagSender(req *http.Request) (*http.Response, error)

GetTagSender sends the GetTag request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetTaggedImages

func (client BaseClient) GetTaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []string, orderBy string, take *int32, skip *int32) (result ListImage, err error)

GetTaggedImages this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. The filtering is on an and/or relationship. For example, if the provided tag ids are for the "Dog" and "Cat" tags, then only images tagged with Dog and/or Cat will be returned Parameters: projectID - the project id iterationID - the iteration id. Defaults to workspace tagIds - an list of tags ids to filter the images. Defaults to all tagged images when null. Limited to 20 orderBy - the ordering. Defaults to newest take - maximum number of images to return. Defaults to 50, limited to 256 skip - number of images to skip before beginning the image batch. Defaults to 0

func (BaseClient) GetTaggedImagesPreparer

func (client BaseClient) GetTaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, tagIds []string, orderBy string, take *int32, skip *int32) (*http.Request, error)

GetTaggedImagesPreparer prepares the GetTaggedImages request.

func (BaseClient) GetTaggedImagesResponder

func (client BaseClient) GetTaggedImagesResponder(resp *http.Response) (result ListImage, err error)

GetTaggedImagesResponder handles the response to the GetTaggedImages request. The method always closes the http.Response Body.

func (BaseClient) GetTaggedImagesSender

func (client BaseClient) GetTaggedImagesSender(req *http.Request) (*http.Response, error)

GetTaggedImagesSender sends the GetTaggedImages request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetTags

func (client BaseClient) GetTags(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (result TagList, err error)

GetTags sends the get tags request. Parameters: projectID - the project id iterationID - the iteration id. Defaults to workspace

func (BaseClient) GetTagsPreparer

func (client BaseClient) GetTagsPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID) (*http.Request, error)

GetTagsPreparer prepares the GetTags request.

func (BaseClient) GetTagsResponder

func (client BaseClient) GetTagsResponder(resp *http.Response) (result TagList, err error)

GetTagsResponder handles the response to the GetTags request. The method always closes the http.Response Body.

func (BaseClient) GetTagsSender

func (client BaseClient) GetTagsSender(req *http.Request) (*http.Response, error)

GetTagsSender sends the GetTags request. The method will close the http.Response Body if it receives an error.

func (BaseClient) GetUntaggedImages

func (client BaseClient) GetUntaggedImages(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (result ListImage, err error)

GetUntaggedImages this API supports batching and range selection. By default it will only return first 50 images matching images. Use the {take} and {skip} parameters to control how many images to return in a given batch. Parameters: projectID - the project id iterationID - the iteration id. Defaults to workspace orderBy - the ordering. Defaults to newest take - maximum number of images to return. Defaults to 50, limited to 256 skip - number of images to skip before beginning the image batch. Defaults to 0

func (BaseClient) GetUntaggedImagesPreparer

func (client BaseClient) GetUntaggedImagesPreparer(ctx context.Context, projectID uuid.UUID, iterationID *uuid.UUID, orderBy string, take *int32, skip *int32) (*http.Request, error)

GetUntaggedImagesPreparer prepares the GetUntaggedImages request.

func (BaseClient) GetUntaggedImagesResponder

func (client BaseClient) GetUntaggedImagesResponder(resp *http.Response) (result ListImage, err error)

GetUntaggedImagesResponder handles the response to the GetUntaggedImages request. The method always closes the http.Response Body.

func (BaseClient) GetUntaggedImagesSender

func (client BaseClient) GetUntaggedImagesSender(req *http.Request) (*http.Response, error)

GetUntaggedImagesSender sends the GetUntaggedImages request. The method will close the http.Response Body if it receives an error.

func (BaseClient) PostImageTags

func (client BaseClient) PostImageTags(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (result ImageTagCreateSummary, err error)

PostImageTags sends the post image tags request. Parameters: projectID - the project id batch - batch of image tags. Limited to 128 tags per batch

func (BaseClient) PostImageTagsPreparer

func (client BaseClient) PostImageTagsPreparer(ctx context.Context, projectID uuid.UUID, batch ImageTagCreateBatch) (*http.Request, error)

PostImageTagsPreparer prepares the PostImageTags request.

func (BaseClient) PostImageTagsResponder

func (client BaseClient) PostImageTagsResponder(resp *http.Response) (result ImageTagCreateSummary, err error)

PostImageTagsResponder handles the response to the PostImageTags request. The method always closes the http.Response Body.

func (BaseClient) PostImageTagsSender

func (client BaseClient) PostImageTagsSender(req *http.Request) (*http.Response, error)

PostImageTagsSender sends the PostImageTags request. The method will close the http.Response Body if it receives an error.

func (BaseClient) QueryPredictionResults

func (client BaseClient) QueryPredictionResults(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (result PredictionQuery, err error)

QueryPredictionResults sends the query prediction results request. Parameters: projectID - the project id query - parameters used to query the predictions. Limited to combining 2 tags

func (BaseClient) QueryPredictionResultsPreparer

func (client BaseClient) QueryPredictionResultsPreparer(ctx context.Context, projectID uuid.UUID, query PredictionQueryToken) (*http.Request, error)

QueryPredictionResultsPreparer prepares the QueryPredictionResults request.

func (BaseClient) QueryPredictionResultsResponder

func (client BaseClient) QueryPredictionResultsResponder(resp *http.Response) (result PredictionQuery, err error)

QueryPredictionResultsResponder handles the response to the QueryPredictionResults request. The method always closes the http.Response Body.

func (BaseClient) QueryPredictionResultsSender

func (client BaseClient) QueryPredictionResultsSender(req *http.Request) (*http.Response, error)

QueryPredictionResultsSender sends the QueryPredictionResults request. The method will close the http.Response Body if it receives an error.

func (BaseClient) QuickTestImage

func (client BaseClient) QuickTestImage(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID) (result ImagePredictionResult, err error)

QuickTestImage sends the quick test image request. Parameters: projectID - the project id iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified.

func (BaseClient) QuickTestImagePreparer

func (client BaseClient) QuickTestImagePreparer(ctx context.Context, projectID uuid.UUID, imageData io.ReadCloser, iterationID *uuid.UUID) (*http.Request, error)

QuickTestImagePreparer prepares the QuickTestImage request.

func (BaseClient) QuickTestImageResponder

func (client BaseClient) QuickTestImageResponder(resp *http.Response) (result ImagePredictionResult, err error)

QuickTestImageResponder handles the response to the QuickTestImage request. The method always closes the http.Response Body.

func (BaseClient) QuickTestImageSender

func (client BaseClient) QuickTestImageSender(req *http.Request) (*http.Response, error)

QuickTestImageSender sends the QuickTestImage request. The method will close the http.Response Body if it receives an error.

func (BaseClient) QuickTestImageURL

func (client BaseClient) QuickTestImageURL(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID) (result ImagePredictionResult, err error)

QuickTestImageURL sends the quick test image url request. Parameters: projectID - the project to evaluate against imageURL - an {Iris.Web.Api.Models.ImageUrl} that contains the url of the image to be evaluated iterationID - optional. Specifies the id of a particular iteration to evaluate against. The default iteration for the project will be used when not specified.

func (BaseClient) QuickTestImageURLPreparer

func (client BaseClient) QuickTestImageURLPreparer(ctx context.Context, projectID uuid.UUID, imageURL ImageURL, iterationID *uuid.UUID) (*http.Request, error)

QuickTestImageURLPreparer prepares the QuickTestImageURL request.

func (BaseClient) QuickTestImageURLResponder

func (client BaseClient) QuickTestImageURLResponder(resp *http.Response) (result ImagePredictionResult, err error)

QuickTestImageURLResponder handles the response to the QuickTestImageURL request. The method always closes the http.Response Body.

func (BaseClient) QuickTestImageURLSender

func (client BaseClient) QuickTestImageURLSender(req *http.Request) (*http.Response, error)

QuickTestImageURLSender sends the QuickTestImageURL request. The method will close the http.Response Body if it receives an error.

func (BaseClient) TrainProject

func (client BaseClient) TrainProject(ctx context.Context, projectID uuid.UUID) (result Iteration, err error)

TrainProject sends the train project request. Parameters: projectID - the project id

func (BaseClient) TrainProjectPreparer

func (client BaseClient) TrainProjectPreparer(ctx context.Context, projectID uuid.UUID) (*http.Request, error)

TrainProjectPreparer prepares the TrainProject request.

func (BaseClient) TrainProjectResponder

func (client BaseClient) TrainProjectResponder(resp *http.Response) (result Iteration, err error)

TrainProjectResponder handles the response to the TrainProject request. The method always closes the http.Response Body.

func (BaseClient) TrainProjectSender

func (client BaseClient) TrainProjectSender(req *http.Request) (*http.Response, error)

TrainProjectSender sends the TrainProject request. The method will close the http.Response Body if it receives an error.

func (BaseClient) UpdateIteration

func (client BaseClient) UpdateIteration(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (result Iteration, err error)

UpdateIteration sends the update iteration request. Parameters: projectID - project id iterationID - iteration id updatedIteration - the updated iteration model

func (BaseClient) UpdateIterationPreparer

func (client BaseClient) UpdateIterationPreparer(ctx context.Context, projectID uuid.UUID, iterationID uuid.UUID, updatedIteration Iteration) (*http.Request, error)

UpdateIterationPreparer prepares the UpdateIteration request.

func (BaseClient) UpdateIterationResponder

func (client BaseClient) UpdateIterationResponder(resp *http.Response) (result Iteration, err error)

UpdateIterationResponder handles the response to the UpdateIteration request. The method always closes the http.Response Body.

func (BaseClient) UpdateIterationSender

func (client BaseClient) UpdateIterationSender(req *http.Request) (*http.Response, error)

UpdateIterationSender sends the UpdateIteration request. The method will close the http.Response Body if it receives an error.

func (BaseClient) UpdateProject

func (client BaseClient) UpdateProject(ctx context.Context, projectID uuid.UUID, updatedProject Project) (result Project, err error)

UpdateProject sends the update project request. Parameters: projectID - the id of the project to update updatedProject - the updated project model

func (BaseClient) UpdateProjectPreparer

func (client BaseClient) UpdateProjectPreparer(ctx context.Context, projectID uuid.UUID, updatedProject Project) (*http.Request, error)

UpdateProjectPreparer prepares the UpdateProject request.

func (BaseClient) UpdateProjectResponder

func (client BaseClient) UpdateProjectResponder(resp *http.Response) (result Project, err error)

UpdateProjectResponder handles the response to the UpdateProject request. The method always closes the http.Response Body.

func (BaseClient) UpdateProjectSender

func (client BaseClient) UpdateProjectSender(req *http.Request) (*http.Response, error)

UpdateProjectSender sends the UpdateProject request. The method will close the http.Response Body if it receives an error.

func (BaseClient) UpdateTag

func (client BaseClient) UpdateTag(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (result Tag, err error)

UpdateTag sends the update tag request. Parameters: projectID - the project id tagID - the id of the target tag updatedTag - the updated tag model

func (BaseClient) UpdateTagPreparer

func (client BaseClient) UpdateTagPreparer(ctx context.Context, projectID uuid.UUID, tagID uuid.UUID, updatedTag Tag) (*http.Request, error)

UpdateTagPreparer prepares the UpdateTag request.

func (BaseClient) UpdateTagResponder

func (client BaseClient) UpdateTagResponder(resp *http.Response) (result Tag, err error)

UpdateTagResponder handles the response to the UpdateTag request. The method always closes the http.Response Body.

func (BaseClient) UpdateTagSender

func (client BaseClient) UpdateTagSender(req *http.Request) (*http.Response, error)

UpdateTagSender sends the UpdateTag request. The method will close the http.Response Body if it receives an error.

type Domain

type Domain struct {
	autorest.Response `json:"-"`
	ID                *uuid.UUID `json:"Id,omitempty"`
	Name              *string    `json:"Name,omitempty"`
	Exportable        *bool      `json:"Exportable,omitempty"`
}

Domain ...

type Export

type Export struct {
	autorest.Response `json:"-"`
	// Platform - Possible values include: 'CoreML', 'TensorFlow'
	Platform Platform `json:"Platform,omitempty"`
	// Status - Possible values include: 'Exporting', 'Failed', 'Done'
	Status      Status1 `json:"Status,omitempty"`
	DownloadURI *string `json:"DownloadUri,omitempty"`
}

Export ...

type Image

type Image struct {
	ID           *uuid.UUID       `json:"Id,omitempty"`
	Created      *date.Time       `json:"Created,omitempty"`
	Width        *int32           `json:"Width,omitempty"`
	Height       *int32           `json:"Height,omitempty"`
	ImageURI     *string          `json:"ImageUri,omitempty"`
	ThumbnailURI *string          `json:"ThumbnailUri,omitempty"`
	Tags         *[]ImageTag      `json:"Tags,omitempty"`
	Predictions  *[]PredictionTag `json:"Predictions,omitempty"`
}

Image image model to be sent as JSON

type ImageCreateResult

type ImageCreateResult struct {
	SourceURL *string `json:"SourceUrl,omitempty"`
	// Status - Possible values include: 'OK', 'OKDuplicate', 'ErrorSource', 'ErrorImageFormat', 'ErrorImageSize', 'ErrorStorage', 'ErrorLimitExceed', 'ErrorTagLimitExceed', 'ErrorUnknown'
	Status Status `json:"Status,omitempty"`
	Image  *Image `json:"Image,omitempty"`
}

ImageCreateResult ...

type ImageCreateSummary

type ImageCreateSummary struct {
	autorest.Response `json:"-"`
	IsBatchSuccessful *bool                `json:"IsBatchSuccessful,omitempty"`
	Images            *[]ImageCreateResult `json:"Images,omitempty"`
}

ImageCreateSummary ...

type ImageFileCreateBatch

type ImageFileCreateBatch struct {
	Images *[]ImageFileCreateEntry `json:"Images,omitempty"`
	TagIds *[]uuid.UUID            `json:"TagIds,omitempty"`
}

ImageFileCreateBatch ...

type ImageFileCreateEntry

type ImageFileCreateEntry struct {
	Name     *string      `json:"Name,omitempty"`
	Contents *[]byte      `json:"Contents,omitempty"`
	TagIds   *[]uuid.UUID `json:"TagIds,omitempty"`
}

ImageFileCreateEntry ...

type ImageIDCreateBatch

type ImageIDCreateBatch struct {
	Images *[]ImageIDCreateEntry `json:"Images,omitempty"`
	TagIds *[]uuid.UUID          `json:"TagIds,omitempty"`
}

ImageIDCreateBatch ...

type ImageIDCreateEntry

type ImageIDCreateEntry struct {
	ID     *uuid.UUID   `json:"Id,omitempty"`
	TagIds *[]uuid.UUID `json:"TagIds,omitempty"`
}

ImageIDCreateEntry ...

type ImagePredictionResult

type ImagePredictionResult struct {
	autorest.Response `json:"-"`
	ID                *uuid.UUID            `json:"Id,omitempty"`
	Project           *uuid.UUID            `json:"Project,omitempty"`
	Iteration         *uuid.UUID            `json:"Iteration,omitempty"`
	Created           *date.Time            `json:"Created,omitempty"`
	Predictions       *[]ImageTagPrediction `json:"Predictions,omitempty"`
}

ImagePredictionResult result of an image prediction request

type ImageTag

type ImageTag struct {
	TagID   *uuid.UUID `json:"TagId,omitempty"`
	Created *date.Time `json:"Created,omitempty"`
}

ImageTag ...

type ImageTagCreateBatch

type ImageTagCreateBatch struct {
	Tags *[]ImageTagCreateEntry `json:"Tags,omitempty"`
}

ImageTagCreateBatch ...

type ImageTagCreateEntry

type ImageTagCreateEntry struct {
	ImageID *uuid.UUID `json:"ImageId,omitempty"`
	TagID   *uuid.UUID `json:"TagId,omitempty"`
}

ImageTagCreateEntry ...

type ImageTagCreateSummary

type ImageTagCreateSummary struct {
	autorest.Response `json:"-"`
	Created           *[]ImageTagCreateEntry `json:"Created,omitempty"`
	Duplicated        *[]ImageTagCreateEntry `json:"Duplicated,omitempty"`
	Exceeded          *[]ImageTagCreateEntry `json:"Exceeded,omitempty"`
}

ImageTagCreateSummary ...

type ImageTagPrediction

type ImageTagPrediction struct {
	TagID       *uuid.UUID `json:"TagId,omitempty"`
	Tag         *string    `json:"Tag,omitempty"`
	Probability *float64   `json:"Probability,omitempty"`
}

ImageTagPrediction ...

type ImageURL

type ImageURL struct {
	URL *string `json:"Url,omitempty"`
}

ImageURL ...

type ImageURLCreateBatch

type ImageURLCreateBatch struct {
	Images *[]ImageURLCreateEntry `json:"Images,omitempty"`
	TagIds *[]uuid.UUID           `json:"TagIds,omitempty"`
}

ImageURLCreateBatch ...

type ImageURLCreateEntry

type ImageURLCreateEntry struct {
	URL    *string      `json:"Url,omitempty"`
	TagIds *[]uuid.UUID `json:"TagIds,omitempty"`
}

ImageURLCreateEntry ...

type Iteration

type Iteration struct {
	autorest.Response `json:"-"`
	// ID - Gets the id of the iteration
	ID *uuid.UUID `json:"Id,omitempty"`
	// Name - Gets or sets the name of the iteration
	Name *string `json:"Name,omitempty"`
	// IsDefault - Gets or sets a value indicating whether the iteration is the default iteration for the project
	IsDefault *bool `json:"IsDefault,omitempty"`
	// Status - Gets the current iteration status
	Status *string `json:"Status,omitempty"`
	// Created - Gets the time this iteration was completed
	Created *date.Time `json:"Created,omitempty"`
	// LastModified - Gets the time this iteration was last modified
	LastModified *date.Time `json:"LastModified,omitempty"`
	// TrainedAt - Gets the time this iteration was last modified
	TrainedAt *date.Time `json:"TrainedAt,omitempty"`
	// ProjectID - Gets the project id of the iteration
	ProjectID *uuid.UUID `json:"ProjectId,omitempty"`
	// Exportable - Whether the iteration can be exported to another format for download
	Exportable *bool `json:"Exportable,omitempty"`
	// DomainID - Get or sets a guid of the domain the iteration has been trained on
	DomainID *uuid.UUID `json:"DomainId,omitempty"`
}

Iteration iteration model to be sent over JSON

type IterationPerformance

type IterationPerformance struct {
	autorest.Response `json:"-"`
	// PerTagPerformance - Gets the per-tag performance details for this iteration
	PerTagPerformance *[]TagPerformance `json:"PerTagPerformance,omitempty"`
	// Precision - Gets the precision
	Precision *float64 `json:"Precision,omitempty"`
	// PrecisionStdDeviation - Gets the standard deviation for the precision
	PrecisionStdDeviation *float64 `json:"PrecisionStdDeviation,omitempty"`
	// Recall - Gets the recall
	Recall *float64 `json:"Recall,omitempty"`
	// RecallStdDeviation - Gets the standard deviation for the recall
	RecallStdDeviation *float64 `json:"RecallStdDeviation,omitempty"`
}

IterationPerformance represents the detailed performance data for a trained iteration

type KeyPair

type KeyPair struct {
	PrimaryKey   *string `json:"PrimaryKey,omitempty"`
	SecondaryKey *string `json:"SecondaryKey,omitempty"`
}

KeyPair ...

type ListDomain

type ListDomain struct {
	autorest.Response `json:"-"`
	Value             *[]Domain `json:"value,omitempty"`
}

ListDomain ...

type ListExport

type ListExport struct {
	autorest.Response `json:"-"`
	Value             *[]Export `json:"value,omitempty"`
}

ListExport ...

type ListImage

type ListImage struct {
	autorest.Response `json:"-"`
	Value             *[]Image `json:"value,omitempty"`
}

ListImage ...

type ListIteration

type ListIteration struct {
	autorest.Response `json:"-"`
	Value             *[]Iteration `json:"value,omitempty"`
}

ListIteration ...

type ListProject

type ListProject struct {
	autorest.Response `json:"-"`
	Value             *[]Project `json:"value,omitempty"`
}

ListProject ...

type OrderBy

type OrderBy string

OrderBy enumerates the values for order by.

const (
	// Newest ...
	Newest OrderBy = "Newest"
	// Oldest ...
	Oldest OrderBy = "Oldest"
	// Suggested ...
	Suggested OrderBy = "Suggested"
)

func PossibleOrderByValues

func PossibleOrderByValues() []OrderBy

PossibleOrderByValues returns an array of possible values for the OrderBy const type.

type PerProjectQuota

type PerProjectQuota struct {
	// ProjectID - Gets the project id of the project this quota applies to
	ProjectID *uuid.UUID `json:"ProjectId,omitempty"`
	// Iterations - Gets the iteration quota for the project
	Iterations *Quota `json:"Iterations,omitempty"`
	// Images - Gets the image quota for the project
	Images *Quota `json:"Images,omitempty"`
	// Tags - Gets the tag quota for the project
	Tags *Quota `json:"Tags,omitempty"`
}

PerProjectQuota represents a set of quotas for a given project

type Platform

type Platform string

Platform enumerates the values for platform.

const (
	// CoreML ...
	CoreML Platform = "CoreML"
	// TensorFlow ...
	TensorFlow Platform = "TensorFlow"
)

func PossiblePlatformValues

func PossiblePlatformValues() []Platform

PossiblePlatformValues returns an array of possible values for the Platform const type.

type Prediction

type Prediction struct {
	ID           *uuid.UUID       `json:"Id,omitempty"`
	Project      *uuid.UUID       `json:"Project,omitempty"`
	Iteration    *uuid.UUID       `json:"Iteration,omitempty"`
	Created      *date.Time       `json:"Created,omitempty"`
	Predictions  *[]PredictionTag `json:"Predictions,omitempty"`
	ImageURI     *string          `json:"ImageUri,omitempty"`
	ThumbnailURI *string          `json:"ThumbnailUri,omitempty"`
}

Prediction result of an image classification request

type PredictionQuery

type PredictionQuery struct {
	autorest.Response `json:"-"`
	Results           *[]Prediction         `json:"Results,omitempty"`
	Token             *PredictionQueryToken `json:"Token,omitempty"`
}

PredictionQuery ...

type PredictionQueryTag

type PredictionQueryTag struct {
	ID           *uuid.UUID `json:"Id,omitempty"`
	MinThreshold *float64   `json:"MinThreshold,omitempty"`
	MaxThreshold *float64   `json:"MaxThreshold,omitempty"`
}

PredictionQueryTag ...

type PredictionQueryToken

type PredictionQueryToken struct {
	Session      *string `json:"Session,omitempty"`
	Continuation *string `json:"Continuation,omitempty"`
	MaxCount     *int32  `json:"MaxCount,omitempty"`
	// OrderBy - Possible values include: 'Newest', 'Oldest', 'Suggested'
	OrderBy     OrderBy               `json:"OrderBy,omitempty"`
	Tags        *[]PredictionQueryTag `json:"Tags,omitempty"`
	IterationID *uuid.UUID            `json:"IterationId,omitempty"`
	StartTime   *date.Time            `json:"StartTime,omitempty"`
	EndTime     *date.Time            `json:"EndTime,omitempty"`
	Application *string               `json:"Application,omitempty"`
}

PredictionQueryToken ...

type PredictionTag

type PredictionTag struct {
	TagID       *uuid.UUID `json:"TagId,omitempty"`
	Tag         *string    `json:"Tag,omitempty"`
	Probability *float64   `json:"Probability,omitempty"`
}

PredictionTag ...

type Project

type Project struct {
	autorest.Response `json:"-"`
	// ID - Gets the project id
	ID *uuid.UUID `json:"Id,omitempty"`
	// Name - Gets or sets the name of the project
	Name *string `json:"Name,omitempty"`
	// Description - Gets or sets the description of the project
	Description *string `json:"Description,omitempty"`
	// Settings - Gets or sets the project settings
	Settings *ProjectSettings `json:"Settings,omitempty"`
	// CurrentIterationID - Gets the current iteration id
	CurrentIterationID *uuid.UUID `json:"CurrentIterationId,omitempty"`
	// Created - Gets the date this project was created
	Created *date.Time `json:"Created,omitempty"`
	// LastModified - Gets the date this project was last modifed
	LastModified *date.Time `json:"LastModified,omitempty"`
	// ThumbnailURI - Gets the thumbnail url representing the image
	ThumbnailURI *string `json:"ThumbnailUri,omitempty"`
}

Project represents a project

type ProjectSettings

type ProjectSettings struct {
	// DomainID - Gets or sets the id of the Domain to use with this project
	DomainID *uuid.UUID `json:"DomainId,omitempty"`
}

ProjectSettings represents settings associated with a project

type Quota

type Quota struct {
	// Total - The total allowable amount in the quota
	Total *int32 `json:"Total,omitempty"`
	// Used - The amount of quota that has currently been used
	Used *int32 `json:"Used,omitempty"`
	// TimeUntilReset - Gets the time remaining until the quota resets. Null if this quota does not reset.
	TimeUntilReset *string `json:"TimeUntilReset,omitempty"`
}

Quota represents a quota

type Status

type Status string

Status enumerates the values for status.

const (
	// ErrorImageFormat ...
	ErrorImageFormat Status = "ErrorImageFormat"
	// ErrorImageSize ...
	ErrorImageSize Status = "ErrorImageSize"
	// ErrorLimitExceed ...
	ErrorLimitExceed Status = "ErrorLimitExceed"
	// ErrorSource ...
	ErrorSource Status = "ErrorSource"
	// ErrorStorage ...
	ErrorStorage Status = "ErrorStorage"
	// ErrorTagLimitExceed ...
	ErrorTagLimitExceed Status = "ErrorTagLimitExceed"
	// ErrorUnknown ...
	ErrorUnknown Status = "ErrorUnknown"
	// OK ...
	OK Status = "OK"
	// OKDuplicate ...
	OKDuplicate Status = "OKDuplicate"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type Status1

type Status1 string

Status1 enumerates the values for status 1.

const (
	// Done ...
	Done Status1 = "Done"
	// Exporting ...
	Exporting Status1 = "Exporting"
	// Failed ...
	Failed Status1 = "Failed"
)

func PossibleStatus1Values

func PossibleStatus1Values() []Status1

PossibleStatus1Values returns an array of possible values for the Status1 const type.

type Tag

type Tag struct {
	autorest.Response `json:"-"`
	// ID - Gets the Tag ID
	ID *uuid.UUID `json:"Id,omitempty"`
	// Name - Gets or sets the name of the tag
	Name *string `json:"Name,omitempty"`
	// Description - Gets or sets the description of the tag
	Description *string `json:"Description,omitempty"`
	// ImageCount - Gets the number of images with this tag
	ImageCount *int32 `json:"ImageCount,omitempty"`
}

Tag represents a Tag

type TagList

type TagList struct {
	autorest.Response   `json:"-"`
	Tags                *[]Tag `json:"Tags,omitempty"`
	TotalTaggedImages   *int32 `json:"TotalTaggedImages,omitempty"`
	TotalUntaggedImages *int32 `json:"TotalUntaggedImages,omitempty"`
}

TagList ...

type TagPerformance

type TagPerformance struct {
	ID   *uuid.UUID `json:"Id,omitempty"`
	Name *string    `json:"Name,omitempty"`
	// Precision - Gets the precision
	Precision *float64 `json:"Precision,omitempty"`
	// PrecisionStdDeviation - Gets the standard deviation for the precision
	PrecisionStdDeviation *float64 `json:"PrecisionStdDeviation,omitempty"`
	// Recall - Gets the recall
	Recall *float64 `json:"Recall,omitempty"`
	// RecallStdDeviation - Gets the standard deviation for the recall
	RecallStdDeviation *float64 `json:"RecallStdDeviation,omitempty"`
}

TagPerformance represents performance data for a particular tag in a trained iteration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL