From 1a3096072f84b182b837db1b2de740049f2d761e Mon Sep 17 00:00:00 2001 From: Donnadonnam <123767522+Donnadonnam@users.noreply.github.com> Date: Sat, 11 Feb 2023 19:24:12 -0600 Subject: [PATCH 1/5] Donnadonnam/.gitignore - AI [GitHub] - Visual Studio...github.dev --- AzureDeployment/AzureML/azureML.json | 116 +-------------------------- 1 file changed, 1 insertion(+), 115 deletions(-) diff --git a/AzureDeployment/AzureML/azureML.json b/AzureDeployment/AzureML/azureML.json index 0c34826..4e768b5 100644 --- a/AzureDeployment/AzureML/azureML.json +++ b/AzureDeployment/AzureML/azureML.json @@ -1,115 +1 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "azureMLName": { - "type": "string" - }, - "location": { - "type": "string" - }, - "uniqueKey": { - "type": "string" - } - }, - "variables": { - "azureMLSku": "basic", - "appInsights": "[resourceId('Microsoft.Insights/components', variables('appInsightsName'))]", - "appInsightsName": "[concat('appInsights-', parameters('uniqueKey'))]", - "keyVault": "[resourceId('Microsoft.KeyVault/vaults', variables('keyVaultName'))]", - "keyVaultName": "[concat('keyVault-', parameters('uniqueKey'))]", - "dataAccount": "[resourceId('Microsoft.Storage/storageAccounts', variables('dataAccountName'))]", - "dataAccountName": "[concat('storage', parameters('uniqueKey'))]", - "dataAccountType": "Standard_LRS" - }, - "resources": [ - { - "comments": "Application Insights for AzureML Workspace", - "type": "Microsoft.Insights/components", - "apiVersion": "2020-02-02-preview", - "name": "[variables('appInsightsName')]", - "location": "[if(or(equals(parameters('location'),'eastus2'), equals(parameters('location'),'westcentralus')),'southcentralus',parameters('location'))]", - "kind": "web", - "properties": { - "Application_Type": "web" - } - }, - { - "comments": "KeyVault for AzureML Workspace", - "type": "Microsoft.KeyVault/vaults", - "apiVersion": "2019-09-01", - "name": "[variables('keyVaultName')]", - "location": "[parameters('location')]", - "properties": { - "accessPolicies": [], - "enableSoftDelete": true, - "softDeleteRetentionInDays": 30, - "sku": { - "family": "A", - "name": "standard" - }, - "tenantId": "[subscription().tenantId]" - } - }, - { - "comments": "Storage account for AzureML Workspace", - "type": "Microsoft.Storage/storageAccounts", - "apiVersion": "2019-06-01", - "name": "[variables('dataAccountName')]", - "location": "[parameters('location')]", - "sku": { - "name": "[variables('dataAccountType')]" - }, - "kind": "StorageV2", - "properties": { - "encryption": { - "keySource": "Microsoft.Storage", - "services": { - "blob": { - "enabled": true - }, - "file": { - "enabled": true - } - } - }, - "supportsHttpsTrafficOnly": true - } - }, - { - "comments": "AzureML Workspace", - "type": "Microsoft.MachineLearningServices/workspaces", - "apiVersion": "2020-06-01", - "name": "[parameters('azureMLName')]", - "location": "[parameters('location')]", - "sku": { - "name": "[variables('azureMLSku')]", - "tier": "[variables('azureMLSku')]" - }, - "dependsOn": [ - "[variables('appInsights')]", - "[variables('dataAccount')]", - "[variables('keyVault')]" - ], - "properties": { - "applicationInsights": "[variables('appInsights')]", - "friendlyName": "[parameters('azureMLName')]", - "keyVault": "[variables('keyVault')]", - "storageAccount": "[variables('dataAccount')]" - }, - "identity": { - "type": "SystemAssigned" - } - } - ], - "outputs": { - "resourceId": { - "type": "string", - "value": "[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('azureMLName'))]" - }, - "keyVaultName": { - "type": "string", - "value": "[variables('keyVaultName')]" - } - } -} +# \ No newline at end of file From 69d616fa3c302fdc00d578734511c730b15243cc Mon Sep 17 00:00:00 2001 From: Donnadonnam <123767522+Donnadonnam@users.noreply.github.com> Date: Sun, 12 Feb 2023 13:23:36 -0600 Subject: [PATCH 2/5] Donnadonnam/.gitignire - AI [GitHub] - Visual Studio...github dev --- .gitignore | 108 +---------------------------------------------------- 1 file changed, 1 insertion(+), 107 deletions(-) diff --git a/.gitignore b/.gitignore index 719c41a..4287ca8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,107 +1 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -local_settings.py -db.sqlite3 - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ - -# Visual Studio -/.vs +# \ No newline at end of file From 904b09784a6f586b5eae45b486105e8678c9829d Mon Sep 17 00:00:00 2001 From: Donnadonnam <123767522+Donnadonnam@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:00:51 -0600 Subject: [PATCH 3/5] Donnadonnam/CONTRIBUTING - AI [GitHub] - Vi...github.dev --- CONTRIBUTING.md | 4 ++++ README.md | 35 ++++++++++++++++------------------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6fcb029..8140e77 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,3 +10,7 @@ provided by the bot. You will only need to do this once across all repositories This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. +{"Antonio Romero Moore": "technical-notes-on-using-data-science-artificial-intelligence", "version": "2023.213.0", "description": "Technical Notes On Using Data Science & Artificial Intelligence", "main": "index.js", "scripts": {"test": "echo \"no test specified\""}, "author": "ApacheCN", "license": "CC BY-NC-SA 4.0", "repository": {"type": "git", "url": "git+"}, "bin": {"technical-notes-on-using-data-science-artificial-intelligence": "index.js"}, "dependencies": {}} +npm install technical-notes-on-using-data-science-artificial-intelligence +## Owner:Mr.Antonio Romero Moore:https://snap.berkeley.edu/project/11940160] +## Kenetic AI INC [1095 Evergreen Cir STE 433, The Woodlands, TX 77380] \ No newline at end of file diff --git a/README.md b/README.md index c511196..e116873 100644 --- a/README.md +++ b/README.md @@ -1,35 +1,32 @@ # Samples, Reference Architectures & Best Practices -This repository is meant to organize Microsoft's Open Source AI based repositories. +# # Keywords -batch scoring, realtime scoring, model training, MLOps, Azure Machine Learning, computer vision, natural language processing, recommenders + +# ## Table of contents -1. [Getting Started](#Getting-Started) -2. [AI100 - Samples](#ai100) -3. [AI200 - Reference Architectures](#ai200) -4. [AI300 - Best Practices](#ai300) -6. [Contributing](#Contributing) + +# 2. [AI100 - Samples](#ai100) + +# 4. [AI300 - Best Practices](#ai300) + +# # Getting Started -This repository is arranged as submodules so you can either pull all the tutorials or simply the ones you want. -To pull all the tutorials run: -```bash -git clone --recurse-submodules https://github.com/microsoft/ai -``` +# To pull all the tutorials run -if you have git older than 2.13 run: +# git clone --recurse-submodules -```bash -git clone --recursive https://github.com/microsoft/ai.git ``` -To pull a single submodule (e.g. DeployDeepModelKubernetes) run: -``` -git clone https://github.com/microsoft/ai -cd ai +# +# ``` + +# ``` +# cd ai git submodule init submodules/DeployDeepModelKubernetes git submodule update ``` From 1725c116ce3f6c7bb664e5f76e931a4f76c4aa74 Mon Sep 17 00:00:00 2001 From: Donnadonnam <123767522+Donnadonnam@users.noreply.github.com> Date: Fri, 3 Mar 2023 10:04:52 -0600 Subject: [PATCH 4/5] Donnadonnam --- CONTRIBUTING.md | 263 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 262 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8140e77..8d55e40 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,4 +13,265 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio {"Antonio Romero Moore": "technical-notes-on-using-data-science-artificial-intelligence", "version": "2023.213.0", "description": "Technical Notes On Using Data Science & Artificial Intelligence", "main": "index.js", "scripts": {"test": "echo \"no test specified\""}, "author": "ApacheCN", "license": "CC BY-NC-SA 4.0", "repository": {"type": "git", "url": "git+"}, "bin": {"technical-notes-on-using-data-science-artificial-intelligence": "index.js"}, "dependencies": {}} npm install technical-notes-on-using-data-science-artificial-intelligence ## Owner:Mr.Antonio Romero Moore:https://snap.berkeley.edu/project/11940160] -## Kenetic AI INC [1095 Evergreen Cir STE 433, The Woodlands, TX 77380] \ No newline at end of file +## Kenetic AI INC [1095 Evergreen Cir STE 433, The Woodlands, TX 77380] +lib-cov +*.seed +*.log +*.csv +*.dat +*.out +*.pid +*.gz + +pids +logs +results + +npm-debug.log +node_modules +bin/cache/gutenburg.rdf.zip +bin/cache/gutenberg.rdf +bin/cache +color.html,')> +"author": "Todd Morrison", + "name": "node-som", + "private": false, + "description": "A Kohonen Network api for Node", + "version": "1.6.6", + "keywords": [ + "som", + "self organizing map", + "sofm", + "kohonen", + "kohonen map", + "ai", + "artificial intelligence", + "machine learning" + ], + "repository": { + "type": "git", + "url": "git@github.com:DeepElement/node-som.git" + }, + "licenses": [{ + "type": "MIT", + "url": "http://opensource.org/licenses/MIT" + }], + "homepage": "http://deepelement.github.io/node-som", + "author": { + "name": "Todd Morrison", + "email": "todd@deepelement.com", + "url": "http://www.deepelement.com" + }, + "bin": { + "node-som": "./bin/node-som.js" + }, + "main": "./bin/node-som", + "dependencies": { + "fast-stats": "0.0.2" + }, + "devDependencies": { + "should": "2.1.1", + "mocha": "1.16.2" + }, + "scripts": { + "test": "mocha""author": "Todd Morrison", + "name": "node-som", + "private": false, + "description": "A Kohonen Network api for Node", + "version": "1.6.6", + "keywords": [ + "som", + "self organizing map", + "sofm", + "kohonen", + "kohonen map", + "ai", + "artificial intelligence", + "machine learning" + ], + "repository": { + "type": "git", + "url": "git@github.com:DeepElement/node-som.git" + }, + "licenses": [{ + "type": "MIT", + "url": "http://opensource.org/licenses/MIT" + }], + "homepage": "http://deepelement.github.io/node-som", + "author": { + "name": "Todd Morrison", + "email": "todd@deepelement.com", + "url": "http://www.deepelement.com" + }, + "bin": { + "node-som": "./bin/node-som.js" + }, + "main": "./bin/node-som", + "dependencies": { + "fast-stats": "0.0.2" + }, + "devDependencies": { + "should": "2.1.1", + "mocha": "1.16.2" + }, + "scripts": { + "test": "mocha",')> +"author": "Mark Cavage ", + "contributors": [ + "Adam Argo", + "Alex Liu", + "Alexander Olsson", + "Andrew Robinson", + "Andrew Sliwinski", + "Anro Robinson", + "Armin Tamzarian", + "Asa Ayers", + "Bastiaan Marinus van de Weerd", + "Ben Doerr", + "Ben Hale", + "Ben Howes", + "Ben Hutchison", + "Benjamine Coe", + "Benjamin Urban", + "Blake VanLandingham", + "Brian Pin", + "Bryan Donovan", + "Bryce Kahle", + "Christopher Cannell", + "Clément Désiles", + "Colin O'Brien", + "Corbin Uselton", + "Diego Torres", + "Domenic Denicola", + "Domikik Lessel", + "Dominic Barnes", + "Erik Kristensen", + "Falco Nogatz", + "Gergely Nemeth", + "Guillaume Chauvet", + "Ifiok Idiang", + "Isaac Schlueter", + "Jacob Quatier", + "James O'Cull", + "James Womack", + "Jonathan Dahan", + "Josh Clulow", + "Jorge Serrano", + "Jason Ghent", + "Khaja Naquiuddin", + "Lou Sacco", + "Matt Smillie", + "Mattijs Spierings", + "Micah Ransdell", + "Michal Moskal", + "Michael Paulson", + "Mike Williams", + "Nathanael Anderson", + "Patrick Mooney", + "Paul Bouzakis", + "Pedro Palazón", + "Quentin Buathier", + "Richardo Stuven", + "Scott Turnquest", + "Shaun Berryman", + "Steve Mason", + "Tim Kuijsten", + "Trent Mick", + "Tuure Kanuisto", + "Will Prater", + "Yunong Xiao", + "Zachary Snow" + ], + "name": "restify", + "homepage": "http://restify.com", + "description": "REST framework", + "keywords": [ + "REST", + "framework", + "express", + "DTrace" + ], + "version": "11.1.0", + "repository": { + "type": "git", + "url": "git://github.com/restify/node-restify.git" + }, + "bugs": { + "url": "https://github.com/restify/node-restify/issues" + }, + "main": "lib/index.js", + "directories": { + "lib": "./lib" + }, + "bin": { + "report-latency": "./bin/report-latency" + }, + "engines": { + "node": ">=10.0.0" + }, + "dependencies": { + "assert-plus": "^1.0.0", + "csv": "^6.2.2", + "escape-regexp-component": "^1.0.2", + "ewma": "^2.0.1", + "find-my-way": "^7.2.0", + "formidable": "^1.2.1", + "http-signature": "^1.3.6", + "lodash": "^4.17.11", + "lru-cache": "^7.14.1", + "mime": "^3.0.0", + "negotiator": "^0.6.2", + "once": "^1.4.0", + "pidusage": "^3.0.2", + "pino": "^8.7.0", + "qs": "^6.7.0", + "restify-errors": "^8.0.2", + "semver": "^7.3.8", + "send": "^0.18.0", + "spdy": "^4.0.0", + "uuid": "^9.0.0", + "vasync": "^2.2.0" + }, + "optionalDependencies": { + "dtrace-provider": "~0.8" + }, + "devDependencies": { + "autocannon": "^4.0.0", + "autocannon-compare": "^0.4.0", + "chai": "^4.2.0", + "coveralls": "^3.0.3", + "documentation": "^11.0.0", + "eslint": "^5.16.0", + "eslint-config-prettier": "^4.3.0", + "eslint-plugin-jsdoc": "^3.15.1", + "eslint-plugin-prettier": "^3.1.0", + "glob": "^7.1.4", + "inquirer": "^3.3.0", + "mkdirp": "^0.5.1", + "mocha": "^7.1.1", + "nodeunit": "^0.11.3", + "nyc": "^15.0.0", + "ora": "^1.3.0", + "pre-commit": "^1.2.2", + "prettier": "^1.17.1", + "proxyquire": "^1.8.0", + "restify-clients": "^2.6.6", + "rimraf": "^2.6.3", + "sinon": "^7.5.0", + "validator": "^7.2.0", + "watershed": "^0.4.0" + }, + "license": "MIT", + "scripts": { + "test": "make prepush" + } + ,') } +npm-install +package-lock.json +node_modules +package.json +node_modules +package.json +package-lock.json +npm-shrinkwrap.json +ddz9690s-7 From bc73d8cad0e76079b06cc32c47c20ddfde0307b3 Mon Sep 17 00:00:00 2001 From: Donnadonnam <123767522+Donnadonnam@users.noreply.github.com> Date: Tue, 9 May 2023 15:50:50 -0500 Subject: [PATCH 5/5] Donnadonnam/AI --- CONTRIBUTING.md | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d55e40..fc36cba 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -275,3 +275,38 @@ package.json package-lock.json npm-shrinkwrap.json ddz9690s-7 +{npm install @google-cloud/aiplatform} +{/** + * TODO(developer): Uncomment these variables before running the sample. + */ +// const projectId = 'YOUR_PROJECT_ID'; +// const location = 'YOUR_PROJECT_LOCATION'; +# +const {EndpointServiceClient} = require('@google-cloud/aiplatform'); +# +// Specifies the location of the api endpoint +const clientOptions = { + apiEndpoint: 'us-central1-aiplatform.googleapis.com', +}; +const client = new EndpointServiceClient(clientOptions); + +async function listEndpoints() { + // Configure the parent resource + const parent = `projects/${projectId}/locations/${location}`; + const request = { + parent, + }; + # + // Get and print out a list of all the endpoints for this resource + const [result] = await client.listEndpoints(request); + for (const endpoint of result) { + console.log(`\nEndpoint name: ${endpoint.name}`); + console.log(`Display name: ${endpoint.displayName}`); + if (endpoint.deployedModels[0]) { + console.log( + `First deployed model: ${endpoint.deployedModels[0].model}` + ); + } + } +} +listEndpoints();} \ No newline at end of file