index
int64
repo_name
string
branch_name
string
path
string
content
string
import_graph
string
8,572
rikenshah/Well-thy
refs/heads/master
/pyScripts/get_health_score.py
import csv import json import re import os maxHealthScore = 1000 featureWeights_dict={} def initialize(): reader = csv.reader(open('pyScripts/feature_weights.csv')) for row in reader: value=[] split_row= row[0].split('\t') key=split_row[0] value=split_row[1:] featureWei...
{"/health/views.py": ["/health/models.py"]}
8,573
rikenshah/Well-thy
refs/heads/master
/pyScripts/score_prediction.py
Ins_Age,Ht,Wt,Individual_Rate,Individual Tobacco Rate,rate_diff,BMI,Response # take all the inputs like Ht, Wt, Rate, Age
{"/health/views.py": ["/health/models.py"]}
8,574
rikenshah/Well-thy
refs/heads/master
/pyScripts/base-for-health-score.py
import pandas as pd from sklearn.preprocessing import LabelEncoder from sklearn.model_selection import cross_val_score from sklearn.linear_model import LinearRegression from sklearn.ensemble import RandomForestRegressor from sklearn.ensemble import GradientBoostingRegressor #from sklearn.preprocessing import LabelEncod...
{"/health/views.py": ["/health/models.py"]}
8,575
rikenshah/Well-thy
refs/heads/master
/health/migrations/0004_auto_20180426_1547.py
# Generated by Django 2.0.1 on 2018-04-26 15:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('health', '0003_auto_20180426_1527'), ] operations = [ migrations.AlterField( model_name='healthprofile', name='sleep...
{"/health/views.py": ["/health/models.py"]}
8,576
rikenshah/Well-thy
refs/heads/master
/health/migrations/0002_auto_20180414_0114.py
# Generated by Django 2.0.1 on 2018-04-14 01:14 from django.conf import settings import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('health', '0001_initial'), ] operations = [ m...
{"/health/views.py": ["/health/models.py"]}
8,577
rikenshah/Well-thy
refs/heads/master
/health/views.py
from django.shortcuts import render from .models import HealthProfile from django.contrib.auth.decorators import login_required from django.views.generic import TemplateView,ListView from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.urls import reverse_lazy from django.contrib.auth.mo...
{"/health/views.py": ["/health/models.py"]}
8,578
rikenshah/Well-thy
refs/heads/master
/health/urls.py
from django.urls import path from . import views from django.contrib.auth.decorators import login_required app_name = 'lesson' urlpatterns = [ # path('', views.index, name='index'), path('profile',login_required(views.profile),name='health_profile'), path('handle',login_required(views.handle_profile),name='ha...
{"/health/views.py": ["/health/models.py"]}
8,630
leying95/stereopy
refs/heads/main
/stereo/plots/_plot_basic/__init__.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Shixu He heshixu@genomics.cn @last modified by: Shixu He @file:__init__.py.py @time:2021/03/15 """
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,631
leying95/stereopy
refs/heads/main
/stereo/log_manager.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:log_manager.py @time:2021/03/05 """ import logging from .config import stereo_conf class LogManager(object): def __init__(self, log_path=None, level=None): self.level_map = {'debug': loggi...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,632
leying95/stereopy
refs/heads/main
/stereo/tools/neighbors.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:neighbors.py @time:2021/03/23 """ from scipy.sparse import coo_matrix from sklearn.neighbors import NearestNeighbors import igraph as ig import numpy as np from umap.umap_ import fuzzy_simplicial_set c...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,633
leying95/stereopy
refs/heads/main
/stereo/core/stereo_data.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:stereo_data.py @time:2021/03/22 """ class StereoData(object): def __init__(self, raw_file=None, exp_matrix=None, genes=None, bins=None, position=None, partitions=1): self.index = None ...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,634
leying95/stereopy
refs/heads/main
/stereo/preprocess/qc.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:qc.py @time:2021/03/26 """ from scipy.sparse import issparse import numpy as np def cal_qc(andata): exp_matrix = andata.X.toarray() if issparse(andata.X) else andata.X total_count = exp_matrix....
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,635
leying95/stereopy
refs/heads/main
/stereo/config.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:config.py @time:2021/03/05 """ from typing import Union, Optional from pathlib import Path import os from matplotlib import rcParams, rcParamsDefault class StereoConfig(object): """ config of s...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,636
leying95/stereopy
refs/heads/main
/stereo/plots/plot_utils.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Shixu He heshixu@genomics.cn @last modified by: Shixu He @file:plot_utils.py @time:2021/03/15 """ from anndata import AnnData import pandas as pd import numpy as np import math from matplotlib.colors import Normalize, ListedColormap from matplotlib import gridspec ...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,637
leying95/stereopy
refs/heads/main
/stereo/tools/cluster.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:cluster.py @time:2021/03/19 """ import leidenalg as la from sklearn.decomposition import PCA from scipy.sparse import coo_matrix from sklearn.neighbors import NearestNeighbors import igraph as ig import ...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,638
leying95/stereopy
refs/heads/main
/stereo/plots/plots.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:plots.py @time:2021/03/31 """ from matplotlib.cm import get_cmap import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap, to_hex, Normalize from matplotlib import gridspec from ._plo...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,639
leying95/stereopy
refs/heads/main
/stereo/utils/__init__.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:__init__.py.py @time:2021/03/05 """ import shutil import os from .correlation import pearson_corr, spearmanr_corr from .data_helper import select_group def remove_file(path): if os.path.isfile(path...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,640
leying95/stereopy
refs/heads/main
/stereo/utils/correlation.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:correlation.py @time:2021/03/11 """ import numpy as np import pandas as pd from scipy import stats def pearson(arr1, arr2): """ calculate pearson correlation between two numpy arrays. :para...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,641
leying95/stereopy
refs/heads/main
/stereo/core/stereo_result.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:stereo_result.py @time:2021/03/18 """ from typing import Optional import numpy as np import pandas as pd from ..log_manager import logger class StereoResult(object): def __init__(self, name: str = ...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,642
leying95/stereopy
refs/heads/main
/stereo/core/__init__.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Ping Qiu qiuping1@genomics.cn @last modified by: Ping Qiu @file:__init__.py.py @time:2021/03/17 """
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,643
leying95/stereopy
refs/heads/main
/stereo/plots/_plot_basic/heatmap_plt.py
#!/usr/bin/env python3 # coding: utf-8 """ @author: Shixu He heshixu@genomics.cn @last modified by: Shixu He @file:heatmap_plt.py @time:2021/03/15 """ from matplotlib.cm import get_cmap from matplotlib.axes import Axes import matplotlib.pyplot as plt from matplotlib.colors import Normalize from matplotlib import grid...
{"/stereo/log_manager.py": ["/stereo/config.py"], "/stereo/plots/plot_utils.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/plots/plots.py": ["/stereo/plots/_plot_basic/heatmap_plt.py", "/stereo/log_manager.py"], "/stereo/utils/__init__.py": ["/stereo/utils/correlation.py"], "/ster...
8,654
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/CropElectricityYeildSimulatorConstant.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 06 Nov 2016 # last edit date: 19 Apr 2017 ####################################################### ##########import package files########## import numpy as np import m...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,655
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/OPVFilm.py
# -*- coding: utf-8 -*- ##########import package files########## from scipy import stats import sys import datetime import calendar import os as os import numpy as np import matplotlib.pyplot as plt import math import CropElectricityYeildSimulatorConstant as constant import Util as util import ShadingCurtain #########...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,656
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/CropElectricityYieldProfitMINLP.py
##########import package files########## from scipy import stats import datetime import sys import os as os import numpy as np import matplotlib.pyplot as plt import math import CropElectricityYeildSimulatorConstant as constant import Util as util import OPVFilm #import Lettuce import CropElectricityYeildSimulatorDetai...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,657
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/PlantGrowthModelS_Pearson1997.py
# -*- coding: utf-8 -*- ##########import package files########## import sys import os as os import numpy as np import math import CropElectricityYeildSimulatorConstant as constant import Util as util import PlantGrowthModelS_Pearson1997Constant as PearsonConstant import Lettuce ########################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,658
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/GreenhouseEnergyBalanceConstant.py
# -*- coding: utf-8 -*- #############command to print out all array data # np.set_printoptions(threshold=np.inf) # print ("directSolarRadiationToOPVWestDirection:{}".format(directSolarRadiationToOPVWestDirection)) # np.set_printoptions(threshold=1000) ############# # ##################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,659
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/Util.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 12 Dec 2016 # last edit date: 14 Dec 2016 ####################################################### ##########import package files########## from scipy import stats imp...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,660
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/SolarIrradianceMultiSpanRoof.py
# -*- coding: utf-8 -*- ##########import package files########## from scipy import stats import sys import datetime import os as os import numpy as np import matplotlib.pyplot as plt import math import CropElectricityYeildSimulatorConstant as constant import Util as util ###############################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,661
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/GreenhouseEnergyBalance.py
# -*- coding: utf-8 -*- #############command to print out all array data # np.set_printoptions(threshold=np.inf) # print ("directSolarRadiationToOPVWestDirection:{}".format(directSolarRadiationToOPVWestDirection)) # np.set_printoptions(threshold=1000) ############# # ##################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,662
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/SimulatorMain.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 19 Dec 2017 # last edit date: 19 Dec 2017 ###################################################### ##########import package files########## # from scipy import stats im...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,663
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/CropElectricityYieldProfitRLShadingCurtain.py
##########import package files########## from scipy import stats import datetime import sys import os as os import numpy as np import matplotlib.pyplot as plt import math import CropElectricityYeildSimulatorConstant as constant import Util as util import OPVFilm #import Lettuce import CropElectricityYeildSimulatorDetai...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,664
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/ShadingCurtain.py
# -*- coding: utf-8 -*- #############command to print out all array data # np.set_printoptions(threshold=np.inf) # print ("directSolarRadiationToOPVWestDirection:{}".format(directSolarRadiationToOPVWestDirection)) # np.set_printoptions(threshold=1000) ############# # ##################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,665
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/PlantGrowthModelValidation.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 21 April 2018 ####################################################### # ##############################################################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,666
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/CropElectricityYeildSimulator1.py
# -*- coding: utf-8 -*- #############command to print out all array data # np.set_printoptions(threshold=np.inf) # print ("directSolarRadiationToOPVWestDirection:{}".format(directSolarRadiationToOPVWestDirection)) # np.set_printoptions(threshold=1000) ############# # ##########################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,667
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/plantGrowthModelTestA_J_Both.py
import numpy as np import matplotlib.pyplot as plt import math # dliList = np.array([40,40,40,40,40,40,40,40,40,40, # 40,40,40,40,40,40,40,40,40,40, # 40,40,40,40,40,40,40,40,40,40, # 40,40,40,40,40,]) dliList = np.array([22,22,22,22,22,22,22,22,22,22, ...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,668
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/CropElectricityYeildSimulatorDetail.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 06 Nov 2016 # last edit date: 14 Dec 2016 ####################################################### ##########import package files########## from scipy import stats imp...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,669
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/PlantGrowthModelE_J_VanHentenConstant.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 15 Jun 2017 # last edit date: 15 Jun 2017 ####################################################### # convert ratio of CO2 into SUgar (CH2O) c_alpha = 30.0 / 44.0 # res...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,670
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/PlantGrowthModelS_Pearson1997Constant.py
# -*- coding: utf-8 -*- ##########import package files########## from scipy import stats import sys import datetime import os as os import numpy as np import matplotlib.pyplot as plt import math import CropElectricityYeildSimulatorConstant as constant import Util #######################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,671
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/SimulatorClass.py
import CropElectricityYeildSimulatorConstant as constant class SimulatorClass: # constructor def __init__(self): self._OPVAreaCoverageRatio = constant.OPVAreaCoverageRatio self._OPVCoverageRatioSummerPeriod = constant.OPVAreaCoverageRatioSummerPeriod self._OPVCoverageRatiosConsiderSummerRatio = None ...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,672
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/Lettuce.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 12 Dec 2016 # last edit date: 14 Dec 2016 ####################################################### ##########import package files########## import os as os import nump...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,673
kensaku-okada/Greenhouse-with-OPV-film-Model
refs/heads/master
/plantGrowthModelE_J_VanHenten.py
# -*- coding: utf-8 -*- ####################################################### # author :Kensaku Okada [kensakuokada@email.arizona.edu] # create date : 15 Jun 2017 # last edit date: 15 Jun 2017 ####################################################### # ##################################################################...
{"/OPVFilm.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/ShadingCurtain.py"], "/CropElectricityYieldProfitMINLP.py": ["/CropElectricityYeildSimulatorConstant.py", "/Util.py", "/OPVFilm.py", "/CropElectricityYeildSimulatorDetail.py", "/SimulatorClass.py"], "/PlantGrowthModelS_Pearson1997.py": ["/CropE...
8,678
lopamd/FAQ-semantic-matching
refs/heads/master
/faq_config.py
import csv import base_objects import nlp_config import sys class FAQReader( object ): """Abstract class. Please implement fetch to return a list of QAPairs.""" def fetch( self ): raise NotImplementedError("Class %s doesn't implement fetch()" % (self.__class__.__name__)) class CSVFAQReader( FA...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,679
lopamd/FAQ-semantic-matching
refs/heads/master
/lesk.py
import nltk from nltk.corpus import wordnet as wn nltk.download('wordnet') nltk.download('stopwords') stops = set(nltk.corpus.stopwords.words('english')) lemmatizer = nltk.stem.wordnet.WordNetLemmatizer() def remove_lemma_and_stops(lemmas, lemma): return {x for x in lemmas if x != lemma and x not in stops ...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,680
lopamd/FAQ-semantic-matching
refs/heads/master
/part4tester.py
import better_objects as b import faq_config import random import sys import lesk import nlp_config import base_objects from nltk.parse.stanford import StanfordDependencyParser from nltk.corpus import wordnet_ic import numpy as np brown_ic = wordnet_ic.ic('ic-brown.dat') '''test_questions = [ "When is ...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,681
lopamd/FAQ-semantic-matching
refs/heads/master
/base_objects.py
class QAPair: def __init__(self, question, answer): self.question = question self.answer = answer def __str__(self): return "Question: [%s] Answer: [%s]" % (self.question, self.answer) class QAFeatureExtraction( object ): '''qa_pairs is a list of QAPair object...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,682
lopamd/FAQ-semantic-matching
refs/heads/master
/faq_nlp.py
import nltk_objects import faq_config import base_objects import operator from nlp_algo import BOWAlgorithm from nlp_eval import MRREvaluation from nlp_config import * import better_objects as b import part4tester as model RESULTS_TOPN = 10 master_training = False do_training = master_training report_training = mas...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,683
lopamd/FAQ-semantic-matching
refs/heads/master
/nlp_algo.py
from sklearn.metrics.pairwise import cosine_similarity import numpy as np from collections import defaultdict class NLPAlgorithm: def __init__(self, uquestion, qfeat, docfeat): self.user_question = uquestion #This will contain the qapair:score self.scoreDict = defaultdict() self.qaf...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,684
lopamd/FAQ-semantic-matching
refs/heads/master
/better_objects.py
import nltk import base_objects import nltk_objects from collections import Counter import sklearn.metrics import numpy as np from nltk.corpus import wordnet as wn from nltk.parse.dependencygraph import DependencyGraph synset_folder = 'data/synsets/' synset_filename_format = "%d_%s.txt" #%d is from 1 to 50, ...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,685
lopamd/FAQ-semantic-matching
refs/heads/master
/nltk_objects.py
import base_objects import nlp_config import nltk from collections import Counter from nltk.parse.stanford import StanfordDependencyParser from nltk.corpus import wordnet as wn nltk.download('punkt') nltk.download('wordnet') nltk.download('stopwords') nltk.download('averaged_perceptron_tagger') dependency_parser = Sta...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,686
lopamd/FAQ-semantic-matching
refs/heads/master
/serialize_synsets.py
import nltk_objects as no import faq_config import lesk #shoutout to Avicii #TODO: not sure if i need to remove stopwords before lemmatizing (ok, tokenizing does that) # but i'm not sure if tokenizing should do that........ #TODO: some words (like In) may need to be lowercased #TODO: maybe we should...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,687
lopamd/FAQ-semantic-matching
refs/heads/master
/nlp_eval.py
import nltk_objects import faq_config import base_objects import operator from nlp_algo import BOWAlgorithm from collections import defaultdict import better_objects as b import part4tester as model TOPTEN_ANS = [] class Evaluation(object): def __init__(self, algoType,fext): self.scores = 0 self...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,688
lopamd/FAQ-semantic-matching
refs/heads/master
/tester.py
import nltk_objects import faq_config faqs = faq_config.getFAQs() feature_extractor = nltk_objects.NLTKFeatureExtraction(faqs) for qatoken in feature_extractor.tokens: print(qatoken) for qatoken in feature_extractor.sentence_tokens: print(qatoken) for qabow in feature_extractor.bow: print(qabow) for qa...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,689
lopamd/FAQ-semantic-matching
refs/heads/master
/nlp_config.py
import os CONFIG_ALGO_BOW = 1 CONFIG_ALGO_NLP = 2 default_locale = 'english' faq_input_file = 'input/Hummingbirds.csv' evaluation_input_file = 'input/evaluationInput.csv' path_to_stanford_lib = r'deps/stanford-corenlp-full-2018-02-27' path_to_stanford_jar = path_to_stanford_lib + r'/stanford-corenlp-3.9.1.jar' path_...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,690
lopamd/FAQ-semantic-matching
refs/heads/master
/serialize_tests.py
import nltk_objects as no import faq_config sub_folder = 'data/depgraphs' faqs = faq_config.getFAQs() feature_extractor = no.NLTKFeatureExtraction(faqs) def save_dependency_graphs(graphs, filename): with open(filename, "w+") as outfile: first = True for graph in graphs: if...
{"/faq_config.py": ["/base_objects.py", "/nlp_config.py"], "/part4tester.py": ["/better_objects.py", "/faq_config.py", "/lesk.py", "/nlp_config.py", "/base_objects.py"], "/faq_nlp.py": ["/nltk_objects.py", "/faq_config.py", "/base_objects.py", "/nlp_algo.py", "/nlp_eval.py", "/nlp_config.py", "/better_objects.py", "/pa...
8,744
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testCliqueTreeMaxSumCalibrate.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents['M...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,745
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testMaxDecoding.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents['M...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,746
indapa/pgmPy
refs/heads/master
/PGMcommon.py
#!/usr/bin/env python from Factor import * import numpy as np from itertools import product import sys import itertools def getUniqueVar( factorList): """ given factorList which is a list of Factor objects return a list of unique variables appearing in the Factor objects. See http://stackoverflow....
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,747
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testComputeExactMaxMarginalsBP.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents['M...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,748
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testGetNextC.py
import scipy.io as sio import numpy as np import pprint from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import pickle """ load the test data from the matlab file """ matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_con...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,749
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testComputeExactMarginalsBP.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents['E...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,750
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testComputeExactMarginalsBP_SixPersonPedigree.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/indapa/software/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents[...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,751
indapa/pgmPy
refs/heads/master
/CliqueTree.py
from Factor import * from FactorOperations import * import numpy as np import networkx as nx import pdb class CliqueTree(object): 'represent a Clique tree' def __init__(self, nodeList=[], edges=[], factorList=[],evidence=[]): self.nodeList=nodeList self.edges=edges self.factorList=fact...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,752
indapa/pgmPy
refs/heads/master
/PedigreeFactors.py
import sys import numpy as np from Factor import * from PGMcommon import * from FactorOperations import * import itertools class PhenotypeFactor (object): """ represents a factor that encodes Pr(phenotype|genotype) for purposes here the variable to the left of the conditioning bar is the first vari...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,753
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testFactorMaxMarginal.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_contents=sio.loadmat(matfile) mat_struct=mat_contents['F...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,754
indapa/pgmPy
refs/heads/master
/PythonNotebooks/testCliqueTreeOperations.py
import sys import numpy as np from Factor import * from PGMcommon import * from PedigreeFactors import * from FactorOperations import * from GeneticNetworkFactory import * from CliqueTree import * import networkx as nx import matplotlib.pyplot as plt from CliqueTreeOperations import * #to create a clique tree, we start...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,755
indapa/pgmPy
refs/heads/master
/CliqueTreeOperations.py
import numpy as np from CliqueTree import * from FactorOperations import * #import matplotlib.pyplot as plt import networkx as nx import pdb def createCliqueTree( factorList,E=[]): """ return a Clique Tree object given a list of factors it peforms VE and returns the clique tree the VE ordering defi...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,756
indapa/pgmPy
refs/heads/master
/GeneticNetworkFactory.py
from Factor import * from FactorOperations import * from PedigreeFactors import * import itertools import numpy as np """" Still not sure how this is going to work This class is a factory for generating a genetic network If we consider each location in the genome independent we generate a new network for...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,757
indapa/pgmPy
refs/heads/master
/PythonNotebooks/ocr_MAP.py
from Factor import * from PGMcommon import * from CliqueTree import * from CliqueTreeOperations import * from FactorOperations import * import scipy.io as sio import numpy as np import pprint import pdb import matplotlib.pyplot as plt import networkx as nx matfile='/Users/amit/BC_Classes/PGM/Prog4/PA4Sample.mat' mat_co...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,758
indapa/pgmPy
refs/heads/master
/Factor.py
import sys import numpy as np class Factor(object): """ Represents a factor in a PGM. A factor has variable scope, cardinality, value, and potentially a name. A factor's values (which can potentially be multi-dimensional table, are represented as NumPy 1d-arrays. See Chapter10 Friedman pg. 358 and ...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,759
indapa/pgmPy
refs/heads/master
/FactorOperations.py
#!/usr/bin/env python from Factor import * import numpy as np from PGMcommon import * import sys import itertools import common import pdb def IndexToAssignment( I, D): """ given and index I (a row vector representing the indices of values a factor object's val field and D, an array representing the cadin...
{"/PythonNotebooks/testCliqueTreeOperations.py": ["/Factor.py", "/PGMcommon.py", "/PedigreeFactors.py", "/FactorOperations.py", "/GeneticNetworkFactory.py", "/CliqueTree.py", "/CliqueTreeOperations.py"], "/CliqueTreeOperations.py": ["/CliqueTree.py", "/FactorOperations.py"], "/GeneticNetworkFactory.py": ["/Factor.py", ...
8,790
youilab/ShowGeoData
refs/heads/master
/prueba.py
import mapGeoData as mp import pandas as pd mapa = mp.set_data('SLP_mancha.shp') slp = mp.read_shapefile(mapa) y_lim = (22.00, 22.25)#latitude x_lim = (-101.1, -100.83)#longitude #Grafica el polígono 30 del mapa #mp.plot_shape(30, mapa) #Grafica el mapa dados los limites en X y Y #mp.plot_map(mapa, x_lim, y_lim...
{"/prueba.py": ["/mapGeoData.py"], "/Densidad/densidad_pob.py": ["/mapGeoData.py"]}
8,791
youilab/ShowGeoData
refs/heads/master
/density.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.neighbors import KernelDensity try: from mpl_toolkits.basemap import Basemap basemap = True except ImportError: basemap = False df = pd.read_csv('cds_ssslp.data.csv') # Filter SLP location data in lat = df['lat'] long = ...
{"/prueba.py": ["/mapGeoData.py"], "/Densidad/densidad_pob.py": ["/mapGeoData.py"]}
8,792
youilab/ShowGeoData
refs/heads/master
/mapGeoData.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt import shapefile as shp import seaborn as sns from shapely.geometry import Point, Polygon def set_data(path): ''' Returns a shapefile object ''' return shp.Reader(path) def read_shapefile(mapa): """ Read a shapefile into ...
{"/prueba.py": ["/mapGeoData.py"], "/Densidad/densidad_pob.py": ["/mapGeoData.py"]}
8,793
youilab/ShowGeoData
refs/heads/master
/Densidad/densidad_pob.py
import pandas as pd import mapGeoData as mp import numpy as np from shapely.geometry import Point, Polygon import matplotlib.pyplot as plt import matplotlib.patches as mpatches from haversine import haversine, Unit def get_heat_data(map, app_data): k = 0 data = np.zeros(len(map)) for i in range(len(app_...
{"/prueba.py": ["/mapGeoData.py"], "/Densidad/densidad_pob.py": ["/mapGeoData.py"]}
8,795
techonomics69/Chatbot-with-booking
refs/heads/master
/timeslots/app/demo/v1/api/dentist_timeslots_did.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function from flask import request, g, Response from . import Resource from .. import schemas from flask import jsonify import json class DentistTimeslotsDid(Resource): def get(self, did): token = request.args.get('token') ...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,796
techonomics69/Chatbot-with-booking
refs/heads/master
/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function from flask import request, g, Response from . import Resource from .. import schemas from flask import jsonify import json class DentistDidTimeslotTidCancel(Resource): def put(self, did, tid): token = request.args.get('tok...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,797
techonomics69/Chatbot-with-booking
refs/heads/master
/dentist/app/demo/v1/api/dentists.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function from flask import request, g, Response from . import Resource from .. import schemas from flask import jsonify import requests import json class Dentists(Resource): def get(self): token = request.args.get('token') ...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,798
techonomics69/Chatbot-with-booking
refs/heads/master
/dentist/app/demo/v1/api/dentist_info_did.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function from flask import request, g, Response from . import Resource from .. import schemas from flask import jsonify import json class DentistInfoDid(Resource): def get(self, did): token = request.args.get('token') if (t...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,799
techonomics69/Chatbot-with-booking
refs/heads/master
/timeslots/app/demo/v1/routes.py
# -*- coding: utf-8 -*- ### ### DO NOT CHANGE THIS FILE ### ### The code is auto generated, your change will be overwritten by ### code generating. ### from __future__ import absolute_import from .api.dentist_timeslots_did import DentistTimeslotsDid from .api.dentist_did_timeslot_tid_cancel import DentistDidTimeslo...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,800
techonomics69/Chatbot-with-booking
refs/heads/master
/dialogflow/dialogflow.py
import os import sys import dialogflow_v2 as dialogflow from uuid import uuid4 sys.path.append("..") # from conf.Response import IntentResponse import requests import json from flask import make_response, jsonify, request, Flask, url_for import os import re from flask_cors import CORS import jwt import datetime from fu...
{"/timeslots/app/demo/v1/routes.py": ["/timeslots/app/demo/v1/api/dentist_timeslots_did.py", "/timeslots/app/demo/v1/api/dentist_did_timeslot_tid_cancel.py"]}
8,803
aidarbek/database_systems_project
refs/heads/master
/benchmark.py
import user import time import neo import tweet sum_neo = 0.0 sum_sql = 0.0 start_id = 1 end_id = 1001 n = (end_id - start_id) * 1.0 for i in range(start_id, end_id): handle = "a" + str(i) # Benchmark SQL start_sql = time.clock() data = tweet.get(handle = handle, page="feed", limit = 10000) sql_time = time...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,804
aidarbek/database_systems_project
refs/heads/master
/tweet.py
#!/usr/bin/python import MySQLdb import config def isOwner(handle, tweet_id): db = MySQLdb.connect(config.DB["host"], config.DB["user"], config.DB["password"], config.DB["db"]) cursor = db.cursor() cursor.execute("SELECT Creator FROM tweet WHERE tweet_id={} AND Creator='{}'".format(tweet_id, handle)) result...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,805
aidarbek/database_systems_project
refs/heads/master
/fill.py
import user import time import neo import tweet sum_neo = 0.0 sum_sql = 0.0 start_id = 1 end_id = 1001 n = (end_id - start_id) * 1.0 for i in range(start_id, end_id): handle = "a" + str(i) # Benchmark SQL start_sql = time.clock() user.register(handle, handle, handle, handle, handle) sql_time = time.clock()...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,806
aidarbek/database_systems_project
refs/heads/master
/config.py
DB = { "host": "localhost", "user": "root", "password": "", "db": "db_course" }
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,807
aidarbek/database_systems_project
refs/heads/master
/user.py
#!/usr/bin/python import MySQLdb import config class User: def __init__(self, login = None, password = None): """ Class constructor can become also authorization function """ self.handle = None self.auth = False if login != None: if self.__exists(login): self.handle = login else: self.h...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,808
aidarbek/database_systems_project
refs/heads/master
/neo.py
""" MATCH (a:User),(b:User) WHERE a.handle = 'a1' AND b.handle = 'a2' CREATE (a)-[r:FOLLOWS]->(b) RETURN r """ query = """ MATCH (person {name: "Keanu Reeves"})-[:ACTED_IN]->(movie)<-[:ACTED_IN]-(guy) RETURN person.name, guy.name, movie.title; """ from neo4j.v1 import GraphDatabase, basic_auth driver = GraphDa...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,809
aidarbek/database_systems_project
refs/heads/master
/app.py
#!/usr/bin/python # -*- coding: utf-8 -*- from flask import Flask, Response from flask import request from flask import abort, redirect, url_for from flask import render_template import os import json from flask import jsonify, send_from_directory from flask.ext.cors import CORS, cross_origin import notification from w...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,810
aidarbek/database_systems_project
refs/heads/master
/notification.py
#!/usr/bin/python import MySQLdb import config def get(handle): db = MySQLdb.connect(config.DB["host"], config.DB["user"], config.DB["password"], config.DB["db"]) cursor = db.cursor() cursor.execute("SELECT `id`, `content`, `url` FROM `notification` WHERE `handle`='{}' AND `read` = 0 LIMIT 10".format(handle)) ...
{"/benchmark.py": ["/user.py", "/neo.py", "/tweet.py"], "/fill.py": ["/user.py", "/neo.py", "/tweet.py"], "/user.py": ["/config.py"], "/app.py": ["/notification.py", "/user.py", "/tweet.py"], "/notification.py": ["/config.py"]}
8,817
slavkoBV/Startups_scrapy
refs/heads/master
/startapps/items.py
import scrapy class StartupItem(scrapy.Item): company_name = scrapy.Field() request_url = scrapy.Field() request_company_url = scrapy.Field() location = scrapy.Field() tags = scrapy.Field() founding_date = scrapy.Field() founders = scrapy.Field() employee_range = scrapy.Field() ur...
{"/startapps/spiders/startup_spider.py": ["/startapps/items.py"]}
8,818
slavkoBV/Startups_scrapy
refs/heads/master
/startapps/pipelines.py
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html class StartappsPipeline(object): def process_item(self, item, spider): for key in item.keys(): if key...
{"/startapps/spiders/startup_spider.py": ["/startapps/items.py"]}
8,819
slavkoBV/Startups_scrapy
refs/heads/master
/startapps/spiders/startup_spider.py
import scrapy import json from scrapy import Selector from ..items import StartupItem class StartupSpider(scrapy.Spider): name = 'startup' allowed_domains = ['e27.co'] count = 0 COUNT_MAX = 500 def start_requests(self): url = 'https://e27.co/startups' for page in range(1, 33): ...
{"/startapps/spiders/startup_spider.py": ["/startapps/items.py"]}
8,820
ottonemo/pytorch-sru
refs/heads/master
/test.py
import torch import numpy as np from torch.autograd import Variable from torch.nn.utils import rnn from torchsru import SRU def test(): batch_first = False sru = SRU(4, 4, batch_first=batch_first, bidirectional=True, use_sigmoid=False).cuda() sru.reset_parameters...
{"/src/torchsru/__init__.py": ["/src/torchsru/model.py"]}
8,821
ottonemo/pytorch-sru
refs/heads/master
/src/torchsru/model.py
# Code copied and slightly modified from https://github.com/taolei87/sru import pkg_resources from collections import namedtuple import torch import torch.nn as nn from torch.autograd import Function from torch.autograd import Variable import torch.nn.utils.rnn as R from cupy.cuda import function from pynvrtc.compile...
{"/src/torchsru/__init__.py": ["/src/torchsru/model.py"]}
8,822
ottonemo/pytorch-sru
refs/heads/master
/src/torchsru/__init__.py
from .model import SRU from .model import SRUCell
{"/src/torchsru/__init__.py": ["/src/torchsru/model.py"]}
8,839
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/extras/cut_objects.py
import numpy as np import sys np.set_printoptions(threshold=sys.maxsize) import matplotlib.pyplot as plt from PIL import Image, ImageDraw import json from collections import defaultdict import random from matplotlib.path import Path import argparse import glob import os import time #from skimage.measure import find_co...
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...
8,840
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/gui/contours.py
from skimage.measure import find_contours as FC import numpy as np from simplification.cutil import simplify_coords def find_contours(*args): contours = FC(*args) simplified_contours = [np.array(simplify_coords(x, 1), dtype=np.int32) \ for x in contours] retur...
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...
8,841
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/extras/move_dataset_to_single_folder.py
import argparse import shutil import json import os if __name__=='__main__': ap = argparse.ArgumentParser() ap.add_argument('dir', help='Path to folder to put all images in the dataset') ap.add_argument('json', help='Path to folder to put all images in the dataset') args = ap.parse_args() wit...
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...
8,842
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/gui/segment.py
from matplotlib import pyplot as plt from matplotlib.collections import PatchCollection from matplotlib.patches import Polygon from matplotlib.widgets import RadioButtons from matplotlib.path import Path from PIL import Image import matplotlib import argparse import numpy as np import glob import os from matplotlib....
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...
8,843
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/extras/combine_json_files.py
''' USAGE: python combine_json_files.py <LIST OF FILES> ''' import os import json import glob import sys import numpy as np import argparse import os def cleanup_utf8(array): arr = [x.encode('ascii', errors='ignore').decode('utf-8') for x in array] return list(map(lambda x: x.strip().strip('\"').strip('\''), a...
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...
8,844
TestaVuota/COCO-Style-Dataset-Generator-GUI
refs/heads/master
/coco_dataset_generator/extras/occlusion_transforms.py
import numpy as np import glob import os import argparse import scipy.interpolate import time from shapely.geometry import Polygon #from skimage.measure import find_contours from ..gui.contours import find_contours from PIL import Image, ImageDraw class Occlusion_Generator(object): def __init__(self, strip_widt...
{"/coco_dataset_generator/extras/cut_objects.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/gui/segment.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/extras/occlusion_transforms.py": ["/coco_dataset_generator/gui/contours.py"], "/coco_dataset_generator/utils/crea...