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
Embedding model | Embedding size | Context size | Size (GB) | MTEB Rank (Feb 24) | Release date | |
---|---|---|---|---|---|---|
e5-mistral-7b-instruct | 4096 | 32768 | 14 | 4 | 04/01/2024 | |
multilingual-e5-large-instruct | 1024 | 514 | 1.12 | 10 | 08/02/2024 | |
BGE-M3 | 1024 | 8192 | 2.27 | NA | 29/01/2024 | |
nomic-embed-text-v1 | 768 | 8192 | 0.55 | 22 | 10/02/2024 |
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
// create by scratch3-extension generator | |
const ArgumentType = Scratch.ArgumentType; | |
const BlockType = Scratch.BlockType; | |
const formatMessage = Scratch.formatMessage; | |
const log = Scratch.log; | |
const menuIconURI = null; | |
const blockIconURI = null; |
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
# Define input and output features | |
output_feature="TX_FRAUD" | |
input_features=['TX_AMOUNT','TX_DURING_WEEKEND', 'TX_DURING_NIGHT', 'CUSTOMER_ID_NB_TX_1DAY_WINDOW', | |
'CUSTOMER_ID_AVG_AMOUNT_1DAY_WINDOW', 'CUSTOMER_ID_NB_TX_7DAY_WINDOW', | |
'CUSTOMER_ID_AVG_AMOUNT_7DAY_WINDOW', 'CUSTOMER_ID_NB_TX_30DAY_WINDOW', | |
'CUSTOMER_ID_AVG_AMOUNT_30DAY_WINDOW', 'TERMINAL_ID_NB_TX_1DAY_WINDOW', | |
'TERMINAL_ID_RISK_1DAY_WINDOW', 'TERMINAL_ID_NB_TX_7DAY_WINDOW', | |
'TERMINAL_ID_RISK_7DAY_WINDOW', 'TERMINAL_ID_NB_TX_30DAY_WINDOW', | |
'TERMINAL_ID_RISK_30DAY_WINDOW'] |
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
# Load data from the 2018-07-25 to the 2018-08-14 | |
DIR_INPUT='./simulated-data-transformed/data/' | |
BEGIN_DATE = "2018-07-25" | |
END_DATE = "2018-08-14" | |
print("Load files") | |
%time transactions_df=read_from_files(DIR_INPUT, BEGIN_DATE, END_DATE) | |
print("{0} transactions loaded, containing {1} fraudulent transactions".format(len(transactions_df),transactions_df.TX_FRAUD.sum())) |
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
# Initialization: Load shared functions and simulated data | |
# Load shared functions | |
!curl -O https://raw.githubusercontent.com/Fraud-Detection-Handbook/fraud-detection-handbook/main/Chapter_References/shared_functions.py | |
%run shared_functions.py | |
# Get simulated data from Github repository | |
if not os.path.exists("simulated-data-transformed"): | |
!git clone https://github.com/Fraud-Detection-Handbook/simulated-data-transformed | |
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
Build Date: Mon Sep 24 2018 | |
main.741353b4.js:119 Build Time: 9:12:58 AM | |
main.741353b4.js:8 [DEBUG] uploadToGaiaHub: uploading key.json to https://mygaia.herokuapp.com | |
main.741353b4.js:667 Error: Failed to parse encrypted content JSON. The content may not be encrypted. If using getFile, try passing { decrypt: false }. | |
at d (main.741353b4.js:32) | |
at main.741353b4.js:32 | |
content-script.js:47 content script: init | |
content-script.js:24 content script: event received | |
content-script.js:25 MessageEvent | |
main.741353b4.js:690 Content is cached for offline use. |
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
Build Date: Mon Sep 24 2018 | |
main.741353b4.js:119 Build Time: 9:12:58 AM | |
main.741353b4.js:8 [DEBUG] uploadToGaiaHub: uploading key.json to https://mygaia.herokuapp.com | |
main.741353b4.js:667 Error: Failed to parse encrypted content JSON. The content may not be encrypted. If using getFile, try passing { decrypt: false }. | |
at d (main.741353b4.js:32) | |
at main.741353b4.js:32 | |
chrome-extension://bkbdaodnaecdijpajecpncpdomgcoakc/content-script.js:47 content script: init | |
chrome-extension://bkbdaodnaecdijpajecpncpdomgcoakc/content-script.js:24 content script: event received | |
chrome-extension://bkbdaodnaecdijpajecpncpdomgcoakc/content-script.js:25 MessageEvent | |
main.741353b4.js:690 Content is cached for offline use. |
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
Build Time: 9:12:58 AM | |
main.741353b4.js:8 [DEBUG] uploadToGaiaHub: uploading key.json to https://hub.blockstack.org | |
content-script.js:47 content script: init | |
content-script.js:24 content script: event received | |
content-script.js:25 MessageEvent | |
VM303:1 GET https://gaia.blockstack.org/hub/16qcb11Anf6o3x9jSKgjCgRMRmQ1UeR6H7/sheetscollection.json 404 | |
(anonymous) @ VM303:1 | |
(anonymous) @ main.741353b4.js:32 | |
Promise.then (async) | |
m @ main.741353b4.js:32 |
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
Build Date: Mon Sep 24 2018 | |
main.741353b4.js:119 Build Time: 9:12:58 AM | |
2main.741353b4.js:8 [DEBUG] connectToGaiaHub: https://hub.blockstack.org/hub_info | |
main.741353b4.js:8 [DEBUG] uploadToGaiaHub: uploading key.json to https://hub.blockstack.org | |
content-script.js:47 content script: init | |
content-script.js:24 content script: event received | |
content-script.js:25 MessageEvent | |
gaia.blockstack.org/hub/16qcb11Anf6o3x9jSKgjCgRMRmQ1UeR6H7/sheetscollection.json:1 Failed to load resource: the server responded with a status of 404 () | |
main.741353b4.js:8 [DEBUG] getFile sheetscollection.json returned 404, returning null | |
main.741353b4.js:667 Nothing to see here |
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
Verifying my Blockstack ID is secured with the address 1934iXrpvRwM43m1sKhb5cfsrjfUWKH362 https://explorer.blockstack.org/address/1934iXrpvRwM43m1sKhb5cfsrjfUWKH362 |
NewerOlder