Skip to content

Instantly share code, notes, and snippets.

View nelvadas's full-sized avatar

Elvadas NONO nelvadas

View GitHub Profile
public class InsuranceCostPredictorApp
{
public static void main(String[] args ) throws IOException {
var regressionFactory = new RegressionFactory();
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PMML xmlns="http://www.dmg.org/PMML-4_4" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.4">
<Header>
<Application name="SkLearn2PMML package" version="0.99.0"/>
<Timestamp>2023-11-09T13:35:17Z</Timestamp>
</Header>
<DataDictionary>
<DataField name="y" optype="continuous" dataType="double"/>
<DataField name="Age" optype="continuous" dataType="double"/>
<DataField name="Gender" optype="continuous" dataType="double"/>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
namespace: server-ns
name: allow-client-ns
spec:
podSelector:
matchLabels: {}
ingress:
- from:
private Function<String, String> loadPythonScript() throws IOException {
Source source = Source.newBuilder("python", new File(pythonScriptFile)).build();
Value pyPart = polyglot.eval(source);
Function<String, String> getDepartmentNameByIdFunc = pyPart.getContext().getPolyglotBindings()
.getMember("getDepartmentNameById").as(Function.class);
return getDepartmentNameByIdFunc;
}
// String dname = getDepartmentNameByIdFunc.apply(departmentId);
private Function<String, String> loadPythonScript() throws IOException {
Source source = Source.newBuilder("python", new File(pythonScriptFile)).build();
Value pyPart = polyglot.eval(source);
Function<String, String> getDepartmentNameByIdFunc = pyPart.getContext().getPolyglotBindings()
.getMember("getDepartmentNameById").as(Function.class);
return getDepartmentNameByIdFunc;
}
// String dname = getDepartmentNameByIdFunc.apply(departmentId);
apiVersion: v1
kind: Pod
metadata:
name: two-containers
spec:
restartPolicy: Never
volumes:
- name: shared-data
emptyDir: {}
containers:

Keybase proof

I hereby claim:

  • I am nelvadas on github.
  • I am nelvadas (https://keybase.io/nelvadas) on keybase.
  • I have a public key ASCPo2EYwDj-YYZEUnXXul_iBpxx_muYTea3VkNWn465bAo

To claim this, I am signing this object: