This file contains 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 numpy as onp | |
import mindspore.scipy as msp | |
import mindspore.numpy as mnp | |
from mindspore import context, nn, ms_function | |
from mindspore.ops import functional as F | |
from mindspore.common import Tensor | |
# from mindspore.scipy.sparse.linalg import IterativeGmres | |
from mindspore.scipy.utils import _to_tensor | |
onp.random.seed(0) |
This file contains 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
using Test, Distributions, CSV, GLM, Lasso, DataFrames | |
using Random, Distributed, LinearAlgebra, SparseArrays, SharedArrays | |
include("./test/testutils.jl") | |
include("./test/addworkers.jl") | |
import HurdleDMR; @everywhere using HurdleDMR | |
include("./test/testdata.jl") |
This file contains 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
using Test, Distributions, CSV, GLM, Lasso, DataFrames | |
using Random, Distributed, LinearAlgebra, SparseArrays, SharedArrays | |
include("./test/testutils.jl") | |
include("./test/addworkers.jl") | |
import HurdleDMR; @everywhere using HurdleDMR | |
include("./test/testdata.jl") |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# -*- coding: utf-8 -*- | |
# @Author: jason-xuan | |
# @Date: 2017-08-07 09:33:12 | |
# @Last Modified by: jason-xuan | |
# @Last Modified time: 2017-08-07 11:25:45 | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
from tqdm import tqdm |
This file contains 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Wed Jul 19 00:07:09 2017 | |
@author: zjxua | |
""" | |
import math | |
import numpy as np | |
from functools import reduce | |
from pprint import pprint |
This file contains 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
知识点1: 前言部分词汇 regress –manly | |
regress(progress:进度) | |
ingress 进入 | |
improvise 即兴创作 | |
benefactor(manufacturer:制造商) | |
shelter 避难所,保护 | |
shield(shell:壳) | |
fetter 束缚 | |
disburse(apart:除) |
This file contains 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
title = ''.join(response.xpath("//div[@class='post_content_main']/h1/text()").extract()) | |
text = '\n'.join(response.xpath("//div[@class='post_text']/p/text()").extract()) |
This file contains 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 requests | |
from re import compile | |
from tqdm import tqdm | |
from bs4 import BeautifulSoup | |
root_url = 'http://www.biquzi.com' | |
def get_urls_from_main_page(url) -> list: |
NewerOlder