{
"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
| # 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" |
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 "fmt" | |
| /* | |
| { | |
| int arr[] = { 2, 3, 4, 5, 7 }; | |
| int n = sizeof(arr) / sizeof(arr[0]); | |
| int max_sum = maxSubArraySum(arr, 0, n - 1); | |
| printf("Maximum contiguous sum is %d\n", max_sum); |
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 ( | |
| "fmt" | |
| ) | |
| var inversion int | |
| func merge(arr []int, low, mid,high int){ | |
| leftarr:=make([]int,mid-low+1) |
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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: dind | |
| spec: | |
| containers: | |
| - name: dind | |
| image: docker-registry.infra.cloudera.com/smothiki/web:docker | |
| securityContext: | |
| privileged: true |
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
| kanikoCmdStr := fmt.Sprintf("executor --context %s --dockerfile %s --skip-tls-verify --destination %s", | |
| tmpDir, dockerBuildFile, dockerImageTag) | |
| package imagehandler | |
| import ( | |
| "fmt" | |
| "os" | |
| ) |