title | description | keywords | author | ms.author | manager | ms.date | ms.topic | ms.service | ms.assetid | ROBOTS | audience | ms.devlang | ms.reviewer | ms.suite | ms.tgt_pltfrm | ms.custom |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rx_set_compute_context: Sets the compute context (revoscalepy) |
Sets the active compute context for revoscalepy computations |
context |
chuckheinzelman |
charlhe |
cgronlun |
07/15/2019 |
reference |
mlserver |
Python |
revoscalepy.rx_set_compute_context(compute_context: revoscalepy.computecontext.RxComputeContext.RxComputeContext) -> revoscalepy.computecontext.RxComputeContext.RxComputeContext
Sets the active compute context for revoscalepy computations
Character string specifying class name or description of the specific class to instantiate, or an existing RxComputeContext object. Choices include: “RxLocalSeq” or “local”, “RxInSqlServer”.
rx_set_compute_context returns the previously active compute context invisibly. rx_get_compute_context returns the active compute context.
RxComputeContext
,
RxLocalSeq
,
RxInSqlServer
,
rx_get_compute_context
.
from revoscalepy import RxLocalSeq, RxInSqlServer, rx_get_compute_context, rx_set_compute_context
local_cc = RxLocalSeq()
sql_server_cc = RxInSqlServer('Driver=SQL Server;Server=.;Database=RevoTestDb;Trusted_Connection=True;')
previous_cc = rx_set_compute_context(sql_server_cc)
rx_get_compute_context()