Skip to content

RSDK-7220 - Ml training wrappers #206

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

Merged
merged 4 commits into from
May 10, 2024

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented May 10, 2024

No description provided.

@stuqdog stuqdog requested a review from a team as a code owner May 10, 2024 15:55
@stuqdog stuqdog requested review from njooma and purplenicole730 May 10, 2024 15:55
Copy link
Member

@njooma njooma left a comment

Choose a reason for hiding this comment

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

Content looks good. Just some minor naming changes please. Once fixed, feel free to merge without requesting another review

/// gRPC client for the [MlTrainingClient]. Used for working with ML training jobs.
///
/// All calls must be authenticated.
class MlTrainingClient {
Copy link
Member

Choose a reason for hiding this comment

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

@@ -0,0 +1,70 @@
import 'package:viam_sdk/protos/app/ml_training.dart';

/// gRPC client for the [MlTrainingClient]. Used for working with ML training jobs.
Copy link
Member

Choose a reason for hiding this comment

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

This is the MLTrainingClient so this docstring is recursive lol. Should this be for the ML Training Service?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooh interesting! I copied this from data.dart but I think this is a mistake cribbed from resources. Since there's no base abstract Data type or MLTraining type that the clients inherit from, I think both should be copying what app.dart does instead. Will update both here.

/// Submits a custom training job request.
///
/// Returns the new job's ID.
Future<String> submitCustomTrainingJob(String orgId, String datasetId, String modelName, String modelVersion, registryItemId) async {
Copy link
Member

Choose a reason for hiding this comment

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

[nit] registryItemId does not have an explicit type

Copy link
Member

@purplenicole730 purplenicole730 left a comment

Choose a reason for hiding this comment

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

barring Naveed's comments

@stuqdog stuqdog force-pushed the ml-training-wrappers branch from 9c84c1b to b89bacc Compare May 10, 2024 19:56
@stuqdog stuqdog merged commit c8d5e20 into viamrobotics:main May 10, 2024
@stuqdog stuqdog deleted the ml-training-wrappers branch May 10, 2024 19:59
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.

3 participants