Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
71a6cc9
FPGA: Update dsp_control README (#1269)
shuoniu-intel Jan 6, 2023
47136b9
FPGA: Revert "FPGA: Remove db query 9 in 2023.0 (#1257)" (#1281)
justin-rosner Jan 6, 2023
f29e3c7
FPGA: Batch PR - sim support - selectors update - readme rework (#1280)
yuguen Jan 9, 2023
2262ecb
FPGA: Remove all references to Windows in README (#1273)
shuoniu-intel Jan 9, 2023
67d6871
Update samples to SYCL 2023 specifications (#1286)
pengtu Jan 10, 2023
0321d30
FPGA: fix io_streaming assets location (#1289)
yuguen Jan 11, 2023
c95cdca
FPGA: remove instructions to build merge_sort on Windows (#1290)
yuguen Jan 11, 2023
d34d013
FPGA: Update printf readme and fixed some typos (#1288)
haoxian2 Jan 12, 2023
6163e91
FPGA: Top level readme update (#1285)
yuguen Jan 12, 2023
06519da
removed dpc_common.hpp dependency (#1282)
krisrak Jan 13, 2023
3c8f7aa
FPGA: add simulation support to the private_copies samples (#1296)
artemrad Jan 16, 2023
32a886d
Reverted PR#1265 and PR#1266 (#1298)
jimmytwei Jan 24, 2023
1ace27d
Update repo Readme.md (#1308)
Jan 24, 2023
584f47f
FPGA: Move all FPGA samples to IP Authoring, targeting Agilex by defa…
yuguen Jan 25, 2023
6d1f764
matrix_mul_mkl: use single precision for compatibility with all devic…
petercad Jan 25, 2023
4fa0850
updated latest GPU devices in Occupancy Calculator (#1309)
krisrak Jan 25, 2023
4384709
FPGA: add a warning when compiling the CRR design in the simulation f…
yuguen Jan 26, 2023
7770a4d
FPGA: Update throughput numbers for mvdr_beamforming design for 2023.…
justin-rosner Jan 27, 2023
dca70c5
FPGA: Update QRD s10 default seed (#1324)
yuguen Jan 27, 2023
df1acd2
FPGA: Add `device_global` sample (#1291)
artemrad Jan 30, 2023
e561b41
update the sample with mcg59 as a default engine (#1331)
andreyfe1 Jan 30, 2023
7162ad0
FPGA: remove fp-relaxed from compile cli, use fp-precise for widnows …
Feb 2, 2023
c66c81c
FPGA: create new invocation interfaces sample (#1303)
intel-jisheng1 Feb 7, 2023
86cd4ff
FPGA: New Code Sample `minimum_latency` (#1302)
shuoniu-intel Feb 8, 2023
ed05257
FPGA: Fix typo (#1342)
yuguen Feb 8, 2023
1e2fdf0
FPGA: Add `fpga_template` sample (#1262)
whitepau Feb 10, 2023
6819ab9
FPGA: Bug fix to the functionality of the `dynamic_profiler` tutorial…
alisanikiforova Feb 10, 2023
cc69cce
FPGA: Reduce the `decompress` test file sizes when running simulation…
yuguen Feb 13, 2023
9c430d9
Compilator update (#1349)
IgorOchocki Feb 14, 2023
da38716
Updated TBB source files to use default_selector_v (#1360)
jimmytwei Feb 15, 2023
fdb1096
update Makefile to compile with icpx (#1363)
Roy-Rupak Feb 16, 2023
06fc0f2
FPGA: Typo for s10 support in `device_globals` (#1359)
artemrad Feb 16, 2023
7e82210
FPGA: Add platform designer tutorial (#1348)
whitepau Feb 17, 2023
ae189df
FPGA: prevent an out of bounds memory access in streaming_qrd.hpp (#1…
yuguen Feb 17, 2023
f676c76
FPGA: Move the simple-add and vector-add samples to the IP Authoring …
yuguen Feb 21, 2023
7df73d5
FPGA: Update onchip memory cache readme (#1358)
Feb 22, 2023
149dbb6
FPGA: Remove Windows simulator command for memory_attributes (#1374)
intel-liudean Feb 22, 2023
59e520c
Fix compilation error (#1371)
IgorOchocki Feb 22, 2023
b304a64
FPGA: replace Agilex™ with Agilex® (#1372)
yuguen Feb 22, 2023
6cc863e
FPGA: Fix decompress emulation flow not using the correct files(#1373)
yuguen Feb 22, 2023
cc603df
FPGA: Fix race condition in the buffered_host_streaming sample (#1375)
yuguen Feb 23, 2023
300b885
Update FPGA optimize inner loop readme (#1380)
Feb 27, 2023
8ce375b
FPGA: incorrect path update (#1382)
yuguen Feb 27, 2023
d78160a
Relax correctness test for Ch04 matrix multiply (#1378)
jimmytwei Feb 27, 2023
6b896c1
FPGA: Reduce the design size of the memory_attributes design in simul…
yuguen Feb 27, 2023
b0c2f81
FPGA: Fix inconsistent device flags in 4 samples (#1384)
yuguen Feb 27, 2023
e35e0e3
FPGA Shannonization Sample readme update (#1386)
Feb 28, 2023
ab56e15
FPGA: Update Host-Device Streaming using USM readme (#1391)
Feb 28, 2023
3556c5e
Update FPGA pipe array readme (#1385)
Feb 28, 2023
2e3ba9b
Revert "FPGA: Remove Windows simulator command for memory_attributes …
intel-liudean Feb 28, 2023
7a2c300
FPGA: better fix for the concurrency issue in buffered_host_streaming…
yuguen Feb 28, 2023
022fed4
FPGA: Reduce test size from 64 to 2 for memory_attributes simulator t…
intel-liudean Feb 28, 2023
76ba21b
FPGA: update gzip seed (#1381)
yuguen Feb 28, 2023
ca7520b
FPGA: improve build instructions in the READMEs for samples that requ…
yuguen Feb 28, 2023
c4d26a7
FPGA: make the decompress design use shared memory allocations in IPA…
yuguen Mar 1, 2023
cff647b
FPGA: check USM support in fpga_template (#1397)
whitepau Mar 1, 2023
df296d7
FPGA: Add the missing simulator selector to the CRR design. (#1398)
yuguen Mar 1, 2023
7302b62
ApplicationDebugger: rely on ONEAPI_DEVICE_SELECTOR to select device.…
nsaiapova Mar 1, 2023
5a99764
FPGA: improve the minimum_latency cmake device detection (#1399)
yuguen Mar 2, 2023
48c5dc4
Triangular Loop readme update (#1393)
Mar 2, 2023
82c8d76
Zero Copy Data Transfer readme update (#1394)
Mar 2, 2023
7d72bb1
FPGA: Improve the `fpga_compile` tutorial (#1347)
KevinUTAT Mar 3, 2023
771382a
FPGA: Add platform designer tutorial: Readme clarification (#1400)
whitepau Mar 3, 2023
8477aa4
FPGA compile update - fix compile problem with USM device check (#1402)
KevinUTAT Mar 3, 2023
dda37d7
FPGA: compile - remove +/- in path (#1404)
KevinUTAT Mar 3, 2023
e7d1dc3
Document that simulator for mvdr_beamforming can take a long time (#1…
intel-liudean Mar 7, 2023
6fc3284
FPGA: Add note to large designs READMEs to warn users about large FPG…
yuguen Mar 7, 2023
1bdf83c
changed the default sub-group size to 32 (#1406)
praveenkk123 Mar 7, 2023
9025f96
FPGA: Update seeds of the GZIP and QRD design to meet performance tar…
yuguen Mar 9, 2023
bf83968
FPGA: Reduce test size for simple_host_streaming simulator target (#1…
intel-liudean Mar 10, 2023
8e57073
ApplicationDebugger: update make targets with ONEAPI_DEVICE_SELECTOR …
nsaiapova Mar 12, 2023
8bf34a5
FPGA: fix anr cmake file (#1420)
yuguen Mar 13, 2023
b8e8852
Added release.json for samples CI (#1418)
jimmytwei Mar 13, 2023
18016e4
FPGA: add include path in compile command (#1423)
KevinUTAT Mar 13, 2023
297e400
FPGA: fix the HW compile seed for the ivdep sample (#1427)
yuguen Mar 14, 2023
3669da8
updated GPU Occupancy Calculator with PVC GPU (#1425)
krisrak Mar 14, 2023
3798091
Tools/ApplicationDebugger: update jacobi sample. (#1421)
nsaiapova Mar 14, 2023
db5d628
Update GPU-Opt-Guide examples to 2023.03.14 (#1432)
pengtu Mar 14, 2023
0c4aa26
Merge branch 'master' into development
jimmytwei Mar 15, 2023
bae0b88
FPGA: Provide smaller input file size option for gzip (#1431)
intel-liudean Mar 15, 2023
679c8c2
updated oneapi_essentials module2 notebook and code sample (#1430)
krisrak Mar 16, 2023
f23efea
Add all files (#1437)
IgorOchocki Mar 16, 2023
2b1f9a4
Add all files (#1436)
IgorOchocki Mar 16, 2023
cd2b497
Updated sample.json files for cuBLAS and matrix_mul_SYCLMigration (#1…
jimmytwei Mar 16, 2023
f37db70
change compiler for new oneDNN release (#1435)
louie-tsai Mar 16, 2023
61679a3
adding Jupyter Notebooks for cuda to sycl migration learning path (#1…
krisrak Mar 16, 2023
918907b
FPGA: Reduce array size for simulation in the loop_unroll sample (#1443)
IlanTruanovsky Mar 17, 2023
28a99d0
FPGA: fix incorrect paths in Windows CI steps (#1445)
yuguen Mar 17, 2023
db8fe82
Pred modeling updates (#1446)
bjodom Mar 17, 2023
cc998c0
Rendering: path tracing with embree cpu updates (#1362)
MichaelRCarroll-Intel Mar 17, 2023
f6a74dd
Rendering: IntroToRayTracingWithEmbree embree4 update (#1354)
MichaelRCarroll-Intel Mar 18, 2023
11d8285
Rendering Embree4 GSG Updates (#1353)
MichaelRCarroll-Intel Mar 18, 2023
bf29eba
Fix double to float (#1447)
IgorOchocki Mar 20, 2023
3f1aa89
FPGA: Platform designer readme touchup (#1449)
whitepau Mar 20, 2023
f6ba5b5
Added SECURITY.md (#1450)
jimmytwei Mar 20, 2023
feddfcd
Removed Windows validation step from ciTests (#1451)
jimmytwei Mar 20, 2023
1577d2b
Rtk development branch fix for validation 20230320 (#1458)
MichaelRCarroll-Intel Mar 21, 2023
1aa9741
FPGA: Fix windows CI steps in platform designer (#1459)
yuguen Mar 21, 2023
ee8ee35
Updated Makefile.win to resolve Windows compilation errors (#1460)
jimmytwei Mar 21, 2023
72f9e08
Updated makefile to remove sycl.lib (#1468)
jimmytwei Mar 22, 2023
b78c402
Allow Ch18 DPC++ book code samples to compile (#1467)
jimmytwei Mar 22, 2023
e36de5f
Tools/ApplicationDebugger/jacobi: remove Windows from sample.json (#1…
nsaiapova Mar 23, 2023
f409932
FPGA: document RTL library issue with the 2023.1 release. (#1471) (#1…
yuguen Mar 23, 2023
876a9de
FPGA: remove 2023.0 cruft in anticipation of 2023.1 release (#1476)
yuguen Mar 24, 2023
0426d80
FPGA: reduce snappy decompression simulation duration (#1478)
yuguen Mar 24, 2023
14bc085
FPGA: Set fp model to "precise" for ac_fixed sample (#1483)
wangdi4 Mar 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
{
"guid": "111213A0-C930-45B4-820F-02472BABBF34",
"name": "Intel® Tensorflow Getting Started",
"categories": ["Toolkit/oneAPI AI And Analytics/AI Getting Started Samples"],
"description": "This sample illustrates how to train a TensorFlow model and run inference with oneMKL and oneDNN.",
"builder": ["cli"],
"languages": [{"python":{}}],
"os":["linux","windows"],
"targetDevice": ["CPU"],
"ciTests": {
"linux": [
{
"id": "tensorflow hello world",
"steps": [
"source activate tensorflow",
"python TensorFlow_HelloWorld.py"
]
}
],
"windows": [
{
"id": "tensorflow hello world",
"steps": [
"source activate tensorflow",
"python TensorFlow_HelloWorld.py"
]
}
]
},
"expertise": "Getting Started"
"guid": "111213A0-C930-45B4-820F-02472BABBF34",
"name": "Intel® Tensorflow Getting Started",
"categories": ["Toolkit/oneAPI AI And Analytics/AI Getting Started Samples"],
"description": "This sample illustrates how to train a TensorFlow model and run inference with oneMKL and oneDNN.",
"builder": ["cli"],
"languages": [{
"python": {}
}],
"os": ["linux", "windows"],
"targetDevice": ["CPU"],
"ciTests": {
"linux": [{
"id": "tensorflow hello world",
"steps": [
"source activate tensorflow",
"python TensorFlow_HelloWorld.py"
]
}]
},
"expertise": "Getting Started"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@
"[Images Source](https://commons.wikimedia.org/wiki/File:3D_view_of_an_event_recorded_with_the_CMS_detector_in_2012_at_a_proton-proton_centre_of_mass_energy_of_8_TeV.png)"
]
},
{
"cell_type": "markdown",
"id": "2f66db55-d1f8-407e-b7bb-b353ce78fa56",
"metadata": {},
"source": [
"# Example environment creation:\n",
"\n",
"This environment is the latest [Intel® oneAPI AI Analytics Toolkit](https://software.intel.com/content/www/us/en/develop/tools/oneapi/ai-analytics-toolkit.html) base environment, which includes data analytics and machine learning workflows and Intel optimizations for XGboost. See [here](https://software.intel.com/content/www/us/en/develop/articles/installing-ai-kit-with-conda.html) for more installation information."
]
},
{
"cell_type": "markdown",
"id": "57efb70b-7073-4baa-b544-253551c7bb58",
Expand All @@ -61,18 +51,21 @@
"outputs": [],
"source": [
"import sklearn\n",
"#from sklearnex import patch_sklearn\n",
"#patch_sklearn()\n",
"from sklearnex import patch_sklearn\n",
"patch_sklearn()\n",
"#unpatch_sklearn()\n",
"from sklearn.model_selection import train_test_split\n",
"from sklearn.metrics import mean_squared_error\n",
"import warnings\n",
"warnings.simplefilter(action='ignore', category=FutureWarning)\n",
"import pandas as pd\n",
"from pandas import MultiIndex, Int16Dtype # if you don't import in this order you will get a pandas.Int64Index fix for FutureWarning error.\n",
"import xgboost as xgb\n",
"import numpy as np\n",
"import warnings\n",
"from time import perf_counter\n",
"print(\"XGB Version : \", xgb.__version__)\n",
"print(\"Scikit-Learn Version : \", sklearn.__version__)"
"print(\"Scikit-Learn Version : \", sklearn.__version__)\n",
"print(\"Pandas Version : \", pd.__version__)"
]
},
{
Expand Down Expand Up @@ -169,11 +162,21 @@
"source": [
"filename = 'HIGGS.csv'\n",
"names = ['class_label', 'lepton pT', 'lepton eta', 'lepton phi', 'missing energy magnitude', 'missing energy phi', 'jet 1 pt', 'jet 1 eta', 'jet 1 phi', 'jet 1 b-tag', 'jet 2 pt', 'jet 2 eta', 'jet 2 phi', 'jet 2 b-tag', 'jet 3 pt', 'jet 3 eta', 'jet 3 phi', 'jet 3 b-tag', 'jet 4 pt', 'jet 4 eta', 'jet 4 phi', 'jet 4 b-tag', 'm_jj', 'm_jjj', 'm_lv', 'm_jlv', 'm_bb', 'm_wbb', 'm_wwbb']\n",
"data = pd.read_csv(filename, names=names, delimiter=\",\", nrows=100000)\n",
"#data = pd.read_csv(filename, names=names, delimiter=\",\", nrows=1100000)\n",
"#data = pd.read_csv(filename, names=names, delimiter=\",\", nrows=100000)\n",
"data = pd.read_csv(filename, names=names, delimiter=\",\", nrows=1100000)\n",
"print(data.shape)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "505ce472-a525-42c3-b995-ddc2c3aa2b43",
"metadata": {},
"outputs": [],
"source": [
"%time p_df = pd.read_csv(\"HIGGS.csv\")"
]
},
{
"cell_type": "markdown",
"id": "0d7249bc-4e6b-4a28-8894-00b14c61d4f2",
Expand Down Expand Up @@ -233,7 +236,7 @@
"id": "d339991a-3485-49ef-8151-c5c8020fc586",
"metadata": {},
"source": [
"* In this scenario loading 100000 rows the balance isn't too skewed. "
"* In this scenario loading 100000 rows the balance isn't too skewed, the next cell is optional."
]
},
{
Expand Down Expand Up @@ -293,7 +296,7 @@
"outputs": [],
"source": [
"# This is the y target vector -- the ones we want to predict.\n",
"# print(data.iloc[:,0])"
"print(data.iloc[:,0])"
]
},
{
Expand Down Expand Up @@ -383,7 +386,7 @@
"}\n",
"\n",
"# Train the model\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"warnings.simplefilter(action='ignore', category=UserWarning)\n",
"t1_start = perf_counter() # Time fit function\n",
"model_xgb= xgb.XGBClassifier(**xgb_params)\n",
"model_xgb.fit(X_train,y_train)\n",
Expand Down Expand Up @@ -515,17 +518,17 @@
" 'disable_default_eval_metric': 'true',\n",
" 'tree_method': 'hist', \n",
"}\n",
"# Necessary for now to supress multi-threaded Future errors with respect to pandas and XGBoost\n",
"import os\n",
"os.environ['PYTHONWARNINGS']='ignore::FutureWarning'\n",
"\n",
"# Train the model\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"model_xgb= xgb.XGBClassifier(**xgb_params2, use_label_encoder=False)\n",
"\n",
"\n",
"# Setup grid search n_jobs=-1 uses all cores, reducing cv from 5 to 3 for speed, scoring is done using area under curve.\n",
"grid_cv = GridSearchCV(model_xgb, param_grid, n_jobs=-1, cv=3, scoring=\"roc_auc\")\n",
"\n",
"# This fit function takes a while--hours, make sure you are ready.\n",
"\n",
"_ = grid_cv.fit(X_train, y_train)"
]
},
Expand Down Expand Up @@ -556,7 +559,7 @@
"source": [
"### Results\n",
"\n",
" grid_cv.best_score_ = 0.8002252116945674 grid cv.best_params\n",
" grid_cv.best_score_ = 0.80 grid cv.best_params\n",
"\n",
" {'colsample_bytree': 1, 'gamma': 0, 'learning_rate': 0.1, 'max_depth': 8, 'reg_lambda': 10, 'scale_pos_weight': 1, 'subsample': 1}\n",
"\n",
Expand Down Expand Up @@ -609,7 +612,7 @@
"\n",
" n_estimators:, default=100\n",
"\n",
"The number of trees in the forest. A good way to see how many trees might be useful is to plot the learning curve. since this is a classification problem we will use log loss as our measurement where lower values are better. \n",
"n_estimaters represents the number of trees in the forest. A good way to see how many trees might be useful is to plot the learning curve. Since this is a classification problem we will use log loss as our measurement where lower values are better. \n",
"\n",
"Our orignal fit function needs to be modified to include eval_metric with the type set to logloss. In addition we need to define the evaluation data set so that the results are evaluated after each round in order to plot them.\n"
]
Expand All @@ -632,7 +635,7 @@
"metadata": {},
"outputs": [],
"source": [
"# fit the model\n",
"# Fit the model\n",
"model_xgb.fit(X_train, y_train, eval_metric='logloss', eval_set=evalset)"
]
},
Expand Down Expand Up @@ -716,16 +719,15 @@
" 'reg_lambda': 10,\n",
" 'scale_pos_weight': 1,\n",
" 'tree_method': 'hist', \n",
" 'n_estimators': 250\n",
" 'n_estimators': 1000,\n",
"}\n",
"\n",
"# Train the model\n",
"warnings.filterwarnings(\"ignore\", category=UserWarning)\n",
"t = time.process_time() # Time fit function\n",
"t1_start = perf_counter() # Time fit function\n",
"model_xgb= xgb.XGBClassifier(**xgb_params)\n",
"model_xgb.fit(X_train,y_train, eval_metric='logloss', eval_set=evalset, verbose=True)\n",
"elapsed_time = time.process_time() - t\n",
"print (\"It took\",elapsed_time,\" to fit.\")"
"t1_stop = perf_counter()\n",
"print (\"It took\", t1_stop-t1_start,\"seconds to fit.\")"
]
},
{
Expand Down Expand Up @@ -780,7 +782,7 @@
"source": [
"## So how many trees do we need really?\n",
"\n",
"* It takes awhile to watch 250 trees get evaluated, a great performance improvement is to use the XGBoost early stopping capbility.\n",
"* It takes awhile to watch 1000 trees get evaluated, a great performance improvement is to use the XGBoost early stopping capability.\n",
"\n",
"* Modify the fit function to stop the training after 10 to 15 rounds of no improvement. \n",
" \n",
Expand Down Expand Up @@ -823,9 +825,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3 (Intel® oneAPI 2023.0)",
"language": "python",
"name": "python3"
"name": "c009-intel_distribution_of_python_3_oneapi-beta05-python"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -837,7 +839,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.9.15"
},
"nbTranslate": {
"displayLangs": [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright Intel Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading