This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From udacity Machine Learning Nanodegree course | |
import numpy as np | |
# Define sigmoid function | |
def sigmoid(x): | |
return 1/(1+np.exp(-x)) | |
# Derivative of the sigmoid function | |
def sigmoid_derivative(x): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"debug.javascript.autoAttachFilter": "smart", | |
"files.associations": { | |
"*.py": "python" | |
}, | |
"editor.formatOnSave": true, | |
"[typescriptreact]": { | |
"editor.defaultFormatter": "esbenp.prettier-vscode" | |
}, | |
"[typescript]": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
host_url = "https://api.nftbank.ai" | |
asset_contract = "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e" | |
token_id = "2795" | |
url = f"{host_url}/v3/realtime-estimated-price/ethereum/{asset_contract}/{token_id}" | |
headers = { | |
"x-api-key": "YOUR API KEY" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const axios = require("axios").default; | |
const hostUrl = "https://api.nftbank.ai"; | |
const assetContract = "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e"; | |
const tokenId = "2795"; | |
const url = `${hostUrl}/v3/realtime-estimated-price/ethereum/${assetContract}/${tokenId}`; | |
const headers = { | |
"x-api-key": "<YOUR API KEY>", | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Teachable Machine Image Model with upload</title> | |
</head> | |
<body> | |
<img id="imagePreview" style="height: 300px;" /> | |
<input id="imageUpload" type="file" /> | |
<div>Teachable Machine Image Model with upload</div> | |
<div id="label-container"></div> |
OlderNewer