---
sourceDocument: Xanadu API リファレンス
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ja-JP/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - ja-JP

ft:publication_title :

    - Xanadu API リファレンス

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# MLSolutionFactory - グローバル

# MLSolutionFactory - グローバル {#ariaid-title1}

* リリースバージョン: Xanadu
* 
* 更新日 2024年08月01日
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 所要時間：1分

MLSolutionFactory API は、MLSolution スクリプト可能オブジェクトを取得するためのファクトリークラスです。

この API には 予測インテリジェンス プラグイン (com.glide.platform_ml) が必要であり、 `sn_ml` 名前空間内で提供されます。詳細については、「[予測インテリジェンス](https://www.servicenow.com/docs/access?context=predictive-intelligence&version=xanadu&pubname=xanadu-intelligent-experiences&ft:locale=en-US)」を参照してください。

使用上のガイドラインについては、 [MLSolutionFactory スクリプト可能オブジェクト](https://www.servicenow.com/docs/access?context=using-ml-apis-mlsolutionfactory&version=xanadu&pubname=xanadu-intelligent-experiences&ft:locale=en-US)を参照してください。
**関連概念**   

* [MLSolution](https://servicenow-prod.fluidtopics.net/wnYZwKaT1DTdD~D90DI9BA#MLSolutionAPI "MLSolution API は、予測インテリジェンス予測を処理し、すべての機能 (類似性、分類、クラスタリング) のソリューション オブジェクトを取得するためのメソッドを提供します。")
* [MLSolutionUtil](https://servicenow-prod.fluidtopics.net/ajbnkWT3NwUM1Dl3uk9d2A#MLSolutionUtilAPI "MLSolutionUtil スクリプトインクルードは、予測インテリジェンス予測を取得するためのメソッドを提供します。")
* [REST API：複数のソリューションの予測を取得する](https://servicenow-prod.fluidtopics.net/b~IuVxzMHLi_bAbImtWwag#agent-intelligence-api "Predictive Intelligence API は、1 つ以上の入力フィールドとトレーニング済みソリューションに基づいてフィールド値を予測するエンドポイントを提供します。")

## MLSolutionFactory - getSolution(文字列 solutionName, オブジェクト options) {#ariaid-title2}

指定されたソリューション名の MLSolution オブジェクトを取得します。
{#MLSolutionFactory-getSolution_S_O__table_hqw_pbm_yfb__entry__3}

| 名前 | タイプ | 説明 |
|-|-|-|
| solutionName | 文字列 | ソリューションの名前。 |
| オプション | オブジェクト | オプション。options.version：指定した場合、指定されたバージョンの solutionName の MLSolution インスタンスを作成します。 |
[表 : 1. パラメーター]

{#MLSolutionFactory-getSolution_S_O__table_hqw_pbm_yfb} {#MLSolutionFactory-getSolution_S_O__table_iqw_pbm_yfb__entry__2}

| タイプ | 説明 |
|-|-|
| オブジェクト | 指定されたソリューションの [MLSolution](https://servicenow-prod.fluidtopics.net/wnYZwKaT1DTdD~D90DI9BA#MLSolutionAPI "MLSolution API は、予測インテリジェンス予測を処理し、すべての機能 (類似性、分類、クラスタリング) のソリューション オブジェクトを取得するためのメソッドを提供します。") オブジェクト。 |
[表 : 2. 返される内容]

{#MLSolutionFactory-getSolution_S_O__table_iqw_pbm_yfb}  

    // basic usage
    var mlSolution = sn_ml.MLSolutionFactory.getSolution("ml_incident_categorization");
            
    // using options.version parameter
    var options = {};
    options.version = 1;
    var mlSolution = sn_ml.MLSolutionFactory.getSolution("ml_incident_categorization", options);


