code
stringlengths
3
6.57k
ownpow(V_IN-V_EX,1/3)
np.mean(s_norm[IN_lobe_img==8])
np.mean(s_norm[IN_lobe_img==16])
np.mean(s_norm[IN_lobe_img==32])
np.mean(s_norm[IN_lobe_img==64])
np.mean(s_norm[IN_lobe_img==128])
np.std(s_norm[IN_lobe_img==8])
np.std(s_norm[IN_lobe_img==16])
np.std(s_norm[IN_lobe_img==32])
np.std(s_norm[IN_lobe_img==64])
np.std(s_norm[IN_lobe_img==128])
np.std(s_norm[IN_lobe_img!=0])
np.float16([s_norm_l0,s_norm_l1,s_norm_l2,s_norm_l3,s_norm_l4,s_norm_mean])
np.float16([s_norm_l0_sd,s_norm_l1_sd,s_norm_l2_sd,s_norm_l3_sd,s_norm_l4_sd,s_norm_sd])
np.float16([s_norm_l0_cv,s_norm_l1_cv,s_norm_l2_cv,s_norm_l3_cv,s_norm_l4_cv,s_norm_cv])
save(s_norm,s_norm_img_path,hdr=s_norm_h)
s_norm_stat.to_csv(s_norm_stat_path, index=False, sep=' ')
time.time()
print(f'Elapsed time: {end-start}s')
cv.imread('nabeel.jpg',0)
cv.imread('nabeel_train.jpg',0)
print(img1.shape)
faceID()
print("constructor finished")
getCroppedImage(rec,crop_img_2)
print(img1.shape)
cv.resize(img1,(100,100)
print(img1.shape)
rec.prewhiten2(img1)
print(img1.shape)
print("whiten finished")
rec.getEmbed(img1)
print("embedding finished")
make_review('A', 3)
make_review('B', 4)
make_review('C', 1)
make_review('A', 4)
make_review('A', 4)
make_review('B', 5)
make_review('C', 2)
make_review('D', 2.5)
make_review('D', 3.5)
restaurant_name(r)
rate_all(user, to_rate, fns)
type(ratings)
len(ratings)
user (should be an integer)
round(ratings['D'], 5)
rating (should be a decimal)
make_review('A', 3)
make_review('B', 4)
make_review('C', 1)
make_review('A', 4)
make_review('A', 4)
make_review('B', 5)
make_review('C', 2)
make_review('D', 2.5)
make_review('D', 3.5)
rate_all(user, to_rate, fns)
type(ratings)
len(ratings)
user (should be an integer)
round(ratings['D'], 5)
rating (should be a decimal)
test.swap_implementations(recommend)
test.restore_implementations(recommend)
Github("username", "password")
g.get_user()
me.get_starred()
print("Unstarring", repo)
me.remove_from_starred(repo)
time.sleep(1 + random.random()
main()
argparse.ArgumentParser()
parser.add_argument('tarfile', nargs='?', help='targer file')
parser.add_argument("-d", "--dry_run", action="store_true", help="dry run")
parser.parse_args()
pack_non_conda_package(opt)
pack_non_conda_package(opt)
update_shebang.update_python_env('./bin/')
main()
__init__(self,channel,min_theta,max_theta,init_theta=0)
if(min_theta<0 or min_theta>180)
if(max_theta<0 or max_theta>180)
if(init_theta<min_theta or init_theta>max_theta)
setup(self)
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
GPIO.setup(self.channel,GPIO.OUT)
GPIO.PWM(self.channel,Rotation.frequency)
self.pwm.start(self.dutycycle)
time.sleep(Rotation.max_delay)
positiveRotation(self)
self.pwm.ChangeDutyCycle(self.dutycycle)
time.sleep(Rotation.min_delay)
reverseRotation(self)
self.pwm.ChangeDutyCycle(self.dutycycle)
time.sleep(Rotation.min_delay)
specifyRotation(self,theta)
if(theta<0 or theta>180)