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 mpl_toolkits.mplot3d import Axes3D | |
from sklearn.preprocessing import StandardScaler | |
from sklearn.preprocessing import LabelEncoder | |
import seaborn as sns | |
import matplotlib.pyplot as plt # plotting | |
import numpy as np # linear algebra | |
import os # accessing directory structure | |
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) | |
import matplotlib.pyplot as plt |
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
var s string | |
var err error | |
s, err = os.Executable() | |
if err != nil { | |
return "", errors.Wrap(err, "os.executable") | |
} | |
ext := filepath.Ext(s) | |
outfile := s[0:len(s)-len(ext)] + ".toml" | |
return outfile, nil |
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
/* | |
// JSONTime .. | |
type JSONTime time.Time | |
// UnmarshalJSON .. | |
func (ct *JSONTime) UnmarshalJSON(b []byte) (err error) { | |
const ctLayout = "2006-01-02" | |
const ctLayout2 = "2006-01-02T15:04:05Z" | |
s := strings.Trim(string(b), "\"") | |
fmt.Printf(">>>>>>>>>>>>>>> %v", s) |