Duck-Automobile
# https://rajasgs.gitbook.io/pynotes/gcp#data-modeling
# https://github.com/tactlabs/student-hiring-prediction-mle/tree/main/dataset
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml311; pyv: 3.11.10 (main, Oct 3 2024, 07:29:13) [GCC 11.2.0]'
!pip show duckdb | grep "Version:"
Read More
Duck-Test1
# https://rajasgs.gitbook.io/pynotes/gcp#data-modeling
# https://github.com/tactlabs/student-hiring-prediction-mle/tree/main/dataset
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml311; pyv: 3.11.10 (main, Oct 3 2024, 07:29:13) [GCC 11.2.0]'
!pip show duckdb | grep "Version:"
Read More
Duck-Test2
# https://rajasgs.gitbook.io/pynotes/gcp#data-modeling
# https://github.com/tactlabs/student-hiring-prediction-mle/tree/main/dataset
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml311; pyv: 3.11.10 (main, Oct 3 2024, 07:29:13) [GCC 11.2.0]'
!pip show duckdb | grep "Version:"
Read More
Duck2Persistent
import pyutil as pyu
pyu.get_local_pyinfo()
'conda env: ml311; pyv: 3.11.10 (main, Oct 3 2024, 07:29:13) [GCC 11.2.0]'
import duckdb
import pandas as pd
# Path to your CSV file
csv_file_path = '../dataset/student_data.csv'
# Create a DuckDB connection
con = duckdb.connect(database=':memory:', read_only=False …
Read More
Eager Execution In Tensorflow
title: "Eager Execution in Tensorflow"
author: "Raja CSP Raman"
date: 2019-05-07
description: "-"
type: technical_note
draft: false
import tensorflow as tf
import os
# Just disables the warning, doesn't enable AVX/FMA
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
tf.enable_eager_execution()
a = tf.constant([1.0, 2.0])
<tf.Tensor: id=3, shape …
Read More
Enumerate-List
title: "Enumerate List"
author: "Raja CSP Raman"
date: 2019-04-20
description: "-"
type: technical_note
draft: false
animals = ['cat', 'dog', 'monkey']
for idx, animal in enumerate(animals):
print ('#%d: %s' % (idx , animal))
#0: cat
#1: dog
#2: monkey
Score: 0
Read More
Enumerate-Sample
title: "Enumerate"
author: "Rj"
date: 2019-04-20
description: "List Test"
type: technical_note
draft: false
data = ['Toronto', 'Montreal', 'Waterloo', 'Chennai', 'Bangalore', 123, ['One', 'Two', 'Three']]
for x in enumerate(data):
print(x)
(0, 'Toronto')
(1, 'Montreal')
(2, 'Waterloo')
(3, 'Chennai')
(4, 'Bangalore')
(5, 123)
(6, ['One', 'Two', 'Three'])
Read More
Euclidean-Compare
title: "Euclidean Compare"
author: "Rj"
date: 2019-04-20
description: "-"
type: technical_note
draft: false
import matplotlib
import numpy
import perfplot
from scipy.spatial import distance
def linalg_norm(data):
a, b = data
return numpy.linalg.norm(a-b, axis=1)
def sqrt_sum(data):
a, b = data
return numpy.sqrt(numpy.sum((a-b …
Read More