{
"doc": {
"mappings": {
properties:{
"capabilities_tags": {
"type": "nested"
"fields": {..}
}
"creation_date": {
This file contains hidden or 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
func largestIsland(grid [][]int) int { | |
n:=len(grid) | |
if n==0{ | |
return 0 | |
} | |
visited:=make([][]bool,n) | |
for i:=0; i<n; i++ { | |
visited[i]=make([]bool,n) | |
} | |
islandArea:=make(map[int]int) |
This file contains hidden or 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
[ | |
[ | |
0.042575303465127945, | |
0.032765358686447144, | |
0.08288835734128952, | |
0.045591503381729126, | |
0.12116891145706177, | |
-0.6816873550415039, | |
-0.03048943541944027, | |
-0.21693657338619232, |
This file contains hidden or 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 logging | |
import sys | |
import warnings | |
from urllib.parse import urlparse | |
import numpy as np | |
import pandas as pd | |
from sklearn.linear_model import ElasticNet | |
from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score |
This file contains hidden or 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
!pip install onnx==1.13.1 onnxruntime skl2onnx | |
import logging | |
import sys | |
import warnings | |
from urllib.parse import urlparse | |
import numpy as np | |
import pandas as pd | |
from sklearn.linear_model import ElasticNet | |
from sklearn.metrics import mean_absolute_error, mean_squared_error, r2_score |
This file contains hidden or 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
# split-oriented DataFrame input | |
curl http://127.0.0.1:5000/invocations -H 'Content-Type: application/json' -d '{ | |
"dataframe_split": { | |
"columns": ["a", "b", "c"], | |
"data": [[1, 2, 3], [4, 5, 6]] | |
} | |
}' | |
# record-oriented DataFrame input (fine for vector rows, loses ordering for JSON records) | |
curl http://127.0.0.1:5000/invocations -H 'Content-Type: application/json' -d '{ |
This file contains hidden or 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"path/filepath" | |
"sync" | |
"time" | |
) |
This file contains hidden or 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
# The data set used in this example is from http://archive.ics.uci.edu/ml/datasets/Wine+Quality | |
# P. Cortez, A. Cerdeira, F. Almeida, T. Matos and J. Reis. | |
# Modeling wine preferences by data mining from physicochemical properties. In Decision Support Systems, Elsevier, 47(4):547-553, 2009. | |
!pip3 install scikit-learn pandas numpy | |
import os | |
import warnings | |
import sys | |
import pandas as pd | |
import numpy as np |
This file contains hidden or 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 os | |
import warnings | |
import sys | |
import pandas as pd | |
import numpy as np | |
from sklearn.metrics import mean_squared_error, mean_absolute_error, r2_score | |
from sklearn.model_selection import train_test_split | |
from sklearn.linear_model import ElasticNet | |
from urllib.parse import urlparse |
This file contains hidden or 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
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" |