src.Projections.Python.Projector.UMAP.UMAPProjector module¶
-
class
src.Projections.Python.Projector.UMAP.UMAPProjector.UMAPProjector¶ Bases:
src.Projections.Python.Projector.Projector.Projector-
clearVariables()¶ Clear all variables
-
formatAndCopyModel()¶
-
getModel(request, context)¶ Return the model to gRPC message
- Parameters
request (gRPC) – standard gRPC (contains the messages)
context (gRPC) – standard gRPC
- Returns
Return the byte model
- Return type
-
getPrecision()¶
-
getProgress(request, context)¶ Implementation for the getProgress gRPC requset
- Parameters
request (gRPC) – standard gRPC (contains the messages)
context (gRPC) – standard gRPC
- Returns
contains the integer of current progress
- Return type
grPC progressKNN
-
start(self, priority: QThread.Priority = QThread.InheritPriority)¶
-
startProjectorService(request, context)¶ Set up the service
- Parameters
request (gRPC) – standard gRPC (contains the messages)
context (gRPC) – standard gRPC
- Returns
gRPC void
-
stopProjectorService(request, context)¶ Stop the current service
- Parameters
request (gRPC) – standard gRPC (contains the messages)
context (gRPC) – standard gRPC
- Returns
grPC void
-
train()¶
-
updatePercentage()¶ Recalculate the current percentage
-
-
src.Projections.Python.Projector.UMAP.UMAPProjector.printMessage(message)¶ Print the coloured message so that we can see in the output which microservice printed it :param message: The actual message :type message: string
-
src.Projections.Python.Projector.UMAP.UMAPProjector.serveServer()¶ Setup the GRPC server