You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AI-and-Analytics/Getting-Started-Samples/IntelPython_daal4py_GettingStarted/README.md
+82-55Lines changed: 82 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,107 +24,132 @@ In this sample, you will run a batch Linear Regression model with oneDAL daal4py
24
24
| Software | Intel® oneAPI Data Analytics Library (oneDAL)
25
25
> **Note**: AI and Analytics samples are validated on AI Tools Offline Installer. For the full list of validated platforms refer to [Platform Validation](https://github.com/oneapi-src/oneAPI-samples/tree/master?tab=readme-ov-file#platform-validation).
26
26
27
-
### For Local Development Environments
27
+
## Key Implementation Details
28
+
29
+
- This get started sample code is implemented for CPUs using the Python language. The example assumes you have daal4py and scikit-learn installed inside a conda environment, similar to what is delivered with the installation of the Intel® Distribution for Python*.
30
+
31
+
- The Intel® oneAPI Data Analytics Library (oneDAL) is ready for use once you finish the AI Tools installation and have run the post installation script.
32
+
33
+
## Environment Setup
28
34
29
35
You will need to download and install the following toolkits, tools, and components to use the sample.
30
36
31
-
-**Intel® AI Tools**
37
+
**1. Get AI Tools**
32
38
33
-
You can get the AI Tools from [Intel® oneAPI Toolkits](https://www.intel.com/content/www/us/en/developer/tools/oneapi/toolkits.html#analytics-kit). <br> See [*Get Started with the Intel® AI Tools for Linux**](https://www.intel.com/content/www/us/en/develop/documentation/get-started-with-ai-linux) for AI Kit installation information and post-installation steps and scripts.
34
39
40
+
Required AI Tools: daal4py (Select Intel® Extension for Scikit-learn* on [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html) to install)
35
41
36
-
## Key Implementation Details
37
42
38
-
- This get started sample code is implemented for CPUs using the Python language. The example assumes you have daal4py and scikit-learn installed inside a conda environment, similar to what is delivered with the installation of the Intel® Distribution for Python* as part of the Intel® AI Analytics Toolkit.
43
+
If you have not already, select and install these Tools via [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html). AI and Analytics samples are validated on AI Tools Offline Installer. It is recommended to select Offline Installer option in AI Tools Selector.
39
44
40
-
- The Intel® oneAPI Data Analytics Library (oneDAL) is ready for use once you finish the Intel® AI Analytics Toolkit installation and have run the post installation script.
45
+
>**Note**: If Docker option is chosen in AI Tools Selector, refer to [Working with Preset Containers](https://github.com/intel/ai-containers/tree/main/preset) to learn how to run the docker and samples.
41
46
42
-
## Environment Setup
47
+
**2. (Offline Installer) Activate the AI Tools bundle base environment**
43
48
44
-
You will need to download and install the following toolkits, tools, and components to use the sample.
49
+
If the default path is used during the installation of AI Tools:
cd oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/IntelPython_daal4py_GettingStarted
71
+
```
47
72
48
-
Required AI Tools: Intel® Optimization for XGBoost*
49
-
<br>If you have not already, select and install these Tools via [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html). AI and Analytics samples are validated on AI Tools Offline Installer. It is recommended to select Offline Installer option in AI Tools Selector.
73
+
**5. Install dependencies**
74
+
<!-- It is required to have requirement.txt file in sample dir. It should list additional libraries, such as matplotlib, ipykernel etc. -->
75
+
>**Note**: Before running the following commands, make sure your Conda/Python environment with AI Tools installed is activated
50
76
51
-
**2. Install dependencies**
52
77
```
53
78
pip install -r requirements.txt
54
-
```
55
-
**Install Jupyter Notebook** by running `pip install notebook`. Alternatively, see [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
79
+
pip install notebook
80
+
```
81
+
For Jupyter Notebook, refer to [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
56
82
57
83
## Run the Sample
58
-
>**Note**: Before running the sample, make sure [Environment Setup](https://github.com/oneapi-src/oneAPI-samples/tree/master/AI-and-Analytics/Getting-Started-Samples/IntelPython_daal4py_GettingStarted#environment-setup) is completed.
84
+
>**Note**: Before running the sample, make sure [Environment Setup](https://github.com/oneapi-src/oneAPI-samples/tree/master/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch#environment-setup) is completed.
85
+
59
86
Go to the section which corresponds to the installation method chosen in [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html) to see relevant instructions:
1. If you have not already done so, activate the AI Tools bundle base environment. If you used the default location to install AI Tools, open a terminal and type the following
<!-- add other flags to jupyter notebook command if needed, such as port 8888 or allow-root -->
111
136
```
112
137
jupyter notebook --ip=0.0.0.0
113
138
```
114
-
<!-- add other flags to jupyter notebook command if needed, such as port 8888 or allow-root -->
115
-
4. Follow the instructions to open the URL with the token in your browser.
116
-
5. Select the Notebook:
139
+
**3. Follow the instructions to open the URL with the token in your browser**
140
+
141
+
**4. Select the Notebook**
117
142
```
118
-
IntelPython_daal4py_GettingStarted.ipynb.ipynb
143
+
IntelPython_daal4py_GettingStarted.ipynb
119
144
```
145
+
**5. Change the kernel to `<your-env-name>`**
146
+
<!-- leave <your-env-name> as a placeholder as user could choose any name for the env -->
120
147
121
-
6. Run every cell in the Notebook in sequence.
148
+
**6. Run every cell in the Notebook in sequence**
122
149
123
150
### Docker
124
151
AI Tools Docker images already have Get Started samples pre-installed. Refer to [Working with Preset Containers](https://github.com/intel/ai-containers/tree/main/preset) to learn how to run the docker and samples.
125
152
126
-
127
-
128
153
## Example Output
129
154
130
155
```
@@ -161,8 +186,10 @@ Here is one of our loaded model's features:
161
186
## License
162
187
163
188
Code samples are licensed under the MIT license. See
164
-
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
Third-party program licenses can be found here: [third-party-programs.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/third-party-programs.txt).
0 commit comments