Skip to content

Implementing Custom Vision#28

Open
AlexAndrei98 wants to merge 1 commit into
joshbalfour:masterfrom
AlexAndrei98:master
Open

Implementing Custom Vision#28
AlexAndrei98 wants to merge 1 commit into
joshbalfour:masterfrom
AlexAndrei98:master

Conversation

@AlexAndrei98

Copy link
Copy Markdown

I am not done implementing Custom Vision overall. Since I do not have a Azure cloud account and I cannot seem to make one I was wondering if anyone could look at test the code and give feedback.

Thanks

@miparnisari

Copy link
Copy Markdown
Collaborator

For #26.

Thanks for the contribution! I'll have a look at it later, I can try it too.

@miparnisari miparnisari left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add .DS_Store to .gitignore.

Please write tests for the new endpoints. I saw that you added a file but it's empty, what's the point in that?

-A series of images to train your classifier (minimum of 30 images per tag).
-A few images to test your classifier after the classifier is trained.
* @augments commonService
* {@link https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fa|documentation}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* {@link https://westus.dev.cognitive.microsoft.com/docs/services/56f91f2d778daf23d8ec6739/operations/56f91f2e778daf14a499e1fa|documentation}
*/

class customvision extends commonService {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please camelCase, i.e. customVisionPrediction. Also add this to index.js

*/

constructor({ apiKey, endpoint }) {
super({ apiKey, endpoint });

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add config value in config.js

]
}

predictImage({parameters, headers, body}){

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation? Also, headers is not necessary (see comments below)

"required": true,
"type": "queryStringParam",
"typeName" : "string",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty line

"description": "Format - uuid. The project to evaluate against",
"value": null,
"required": true,
"type": "queryStringParam",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a routeParam

CreateProject({parameters, headers, body}){

const operation = {
"path": "customvision/v1.0/Training/projects/{projectId}/tags?name={name}",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for ?name={name}

"path": "customvision/v1.0/Training/projects/{projectId}/tags?name={name}",
"method": "POST",
"headers": [{
"name": "TrainingKey",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this Training-key?

"path": "customvision/v1.0/Training/projects?name={name}",
"method": "POST",
"headers": [{
"name": "TrainingKey",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Training-key?

"required": false,
"typeName": "string"
},{
"name": "TrainingKey",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Training-key?

@miparnisari miparnisari self-assigned this Dec 8, 2017
@miparnisari miparnisari removed their assignment Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants