MCPcopy Create free account
hub / github.com/HumanSignal/label-studio / post

Method post

label_studio/ml/api.py:286–291  ·  view source on GitHub ↗
(self, request, *args, **kwargs)

Source from the content-addressed store, hash-verified

284 permission_required = all_permissions.projects_change
285
286 def post(self, request, *args, **kwargs):
287 ml_backend = generics.get_object_or_404(MLBackend, pk=self.kwargs['pk'])
288 self.check_object_permissions(self.request, ml_backend)
289
290 ml_backend.train()
291 return Response(status=status.HTTP_200_OK)
292
293
294@method_decorator(

Callers 4

send_jobMethod · 0.45
test_session_policy_apiFunction · 0.45
run_webhook_syncFunction · 0.45

Calls 1

trainMethod · 0.45

Tested by 2

test_session_policy_apiFunction · 0.36