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 <stdio.h> | |
#include <stdlib.h> | |
typedef enum { | |
BUTTON, | |
LABEL, | |
PANEL | |
} UIComponentType; | |
typedef struct { |
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 <stdio.h> | |
#include <stdlib.h> | |
typedef struct { | |
void (*request)(void *self); | |
} Subject; | |
typedef struct { | |
Subject subject; | |
} RealSubject; |
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 <limits.h> | |
#include <unistd.h> | |
void ft_putchar(char c) | |
{ | |
write(1, &c, 1); | |
} | |
static int raises_error(long int x, long int y) | |
{ |
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 typing import Any, Generator | |
from iqe_tasks.constants import HostTypes | |
import asyncio | |
import concurrent.futures | |
from iqe_tasks import TasksApp | |
from fabric import Connection | |
class EvokeFirstIterationMeta(type): | |
"""Force evoking the first iteration of a generator object.""" |
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 dataclasses import dataclass | |
from datetime import datetime | |
from flask import Flask, jsonify | |
from flask_sqlalchemy import SQLAlchemy | |
app = Flask(__name__) | |
db = SQLAlchemy(app) | |
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
import re | |
import pandas as pd | |
from google.cloud import bigquery | |
from google.colab import auth | |
PROJECT_ID = 'sql-hunt' # change to your own project | |
class BqTable: | |
def __init__(self, table, dataset='samples', active_project='bigquery-public-data', client=None): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# run 00_data_split | |
from sklearn.feature_selection import SelectFromModel | |
from sklearn.linear_model import Lasso | |
from sklearn.ensemble import RandomForestRegressor | |
selector_model = Lasso(alpha=1.,normalize=True) | |
selector = SelectFromModel(selector_model, max_features=5, threshold=-np.inf) | |
selector.fit(Xtrain, ytrain) |
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.feature_selection import SelectFromModel | |
from sklearn.metrics import mean_squared_error | |
from sklearn.linear_model import LinearRegression, Ridge, Lasso | |
from sklearn.ensemble import RandomForestRegressor | |
# Feature Selection | |
k_vs_score=[] | |
seed = 42 | |
for k in range(2, X_train.shape[1], 2): |
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.feature_selection import SelectKBest, f_regression | |
from sklearn.ensemble import RandomForestRegressor | |
from sklearn.metrics import mean_absolute_error | |
k_vs_score = [] | |
initial_features = 2 | |
max_n_features = len(X.columns) | |
step = 2 | |
NewerOlder