Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing Custom Vision #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AlexAndrei98
Copy link

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
Collaborator

For #26.

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

Copy link
Collaborator

@miparnisari miparnisari left a comment

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
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
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
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
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
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
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
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
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
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
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
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