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
addi x17, x0, 5 # read a (a is put in x10) | |
ecall | |
add x6, x0, x10 # store "a" in x6 | |
srli x5, x10, 31 # store sign of "a" in x5 | |
ecall | |
add x29, x0, x10 # store "b" in x29 | |
srli x28, x10, 31 # store sign of "b" in x28 | |
beq x6, x0, if_a_zero # branch if a is zero (???) | |
beq x29, x0, if_b_zero #branch if b is zero (???) | |
beq x5, x0, if_a_less_0 # branch if "a" < 0 then inverse it |
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
#include <algorithm> | |
#include <iostream> | |
#include <map> | |
#include <vector> | |
typedef unsigned int UInt; | |
struct Date | |
{ | |
UInt day; |
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
from asyncio import as_completed | |
from functools import partial | |
import os | |
import boto3 | |
import tqdm | |
from concurrent.futures.thread import ThreadPoolExecutor | |
from dotenv import load_dotenv | |
load_dotenv() | |
LOCAL_WEIGHTS_DIR = 'model-weights-skills' |
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
#include <fstream> | |
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <vector> | |
struct Employee { | |
std::string name; | |
std::vector<int> salaries; | |
}; |
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
def add_pupil(name, birth_year, cs_score, math_score, physics_score, data): | |
data[name] = (name, birth_year, cs_score, math_score, physics_score) # | |
def show_pupil(name, data): | |
print(*data[name]) | |
def del_pupil(name, data): | |
del data[name] |
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
FAILED [100%]Recreating table test_cls with data from file | |
Done | |
Task: cls | |
| iter | target | algo_i... | prepro... | | |
------------------------------------------------- | |
Child Iteration accuracy: 0.884955 | |
Child Iteration accuracy: 0.862831 | |
| 1 | 0.885 | 2.063 | 1.061 | | |
Child Iteration accuracy: 0.871681 | |
Child Iteration accuracy: 0.865044 |
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
FAILED [100%]Recreating table test_when_clean with data from file | |
Done | |
Task: cls | |
| iter | target | algo_i... | prepro... | | |
------------------------------------------------- | |
Child Iteration accuracy: 0.77528 | |
Child Iteration accuracy: 0.786516 | |
| 1 | 0.7865 | 2.063 | 1.061 | | |
Child Iteration accuracy: 0.786516 | |
Child Iteration accuracy: 0.808988 |
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
// | |
// ImagePicker.swift | |
// | |
// Created by Daniel Khromov on 3/2/21. | |
// | |
import SwiftUI | |
import UIKit | |
struct ImagePicker: UIViewControllerRepresentable{ |
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
from sklearn.ensemble import ExtraTreesClassifier | |
import matplotlib.pyplot as plt | |
model = ExtraTreesClassifier() | |
model.fit(X,y) | |
f = plt.figure(figsize=(10, 10)) | |
print(model.feature_importances_) #use inbuilt class feature_importances of tree based classifiers | |
#plot graph of feature importances for better visualization | |
feat_importances = pd.Series(model.feature_importances_, index=X.columns) | |
feat_importances.nlargest(30).plot(kind='barh') | |
plt.show() |
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
<?php | |
function equation($a, $b, $c){ | |
if ($a != 0){ | |
$D = $b*$b - 4*$a*$c; | |
if($D < 0){ | |
return "No roots"; | |
} | |
if($D == 0){ | |
return -$b/(2*$a); | |
} |
NewerOlder