id stringlengths 16 145 | text stringlengths 1 179k | title stringclasses 1
value |
|---|---|---|
scipy_io/844_68_0.txt | Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.8.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.8.0 | |
scipy_io/7510_169_0.txt | [

](/evfro) | |
scipy_io/844_135_0.txt | Milestone | |
scipy_io/7510_166_0.txt | --- | |
scipy_io/844_38_0.txt | [ Sign up
](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-
name%3E%2F%3Crepo-
name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-
repo&source_repo=rstudio%2Freticulate) | |
scipy_io/7510_82_0.txt | The text was updated successfully, but these errors were encountered: | |
scipy_io/7510_12_0.txt | By Solution | |
scipy_io/7510_187_0.txt | No branches or pull requests | |
scipy_io/844_94_0.txt | import numpy as np
import scipy.sparse
sparse_matrix = scipy.sparse.csc_matrix(np.array([[0, 0, 3], [4, 0, 0]]))
scipy.sparse.save_npz('X.npz', sparse_matrix) | |
scipy_io/844_42_0.txt | * [ Notifications ](/login?return_to=%2Frstudio%2Freticulate)
* [ Fork 327 ](/login?return_to=%2Frstudio%2Freticulate)
* [ Star 1.6k ](/login?return_to=%2Frstudio%2Freticulate) | |
scipy_io/844_15_0.txt | * [ Learning Pathways ](https://resources.github.com/learn/pathways)
* [ White papers, Ebooks, Webinars ](https://resources.github.com)
* [ Customer Stories ](https://github.com/customer-stories)
* [ Partners ](https://partner.github.com) | |
scipy_io/scipysparsesavenpzht_9_0.txt | * [ scipy ](../main_namespace.html)
* [ scipy.cluster ](../cluster.html)
* [ scipy.constants ](../constants.html)
* [ scipy.datasets ](../datasets.html)
* [ scipy.fft ](../fft.html)
* [ scipy.fftpack ](../fftpack.html)
* [ scipy.integrate ](../integrate.html)
* [ scipy.interpolate ](../interpolate.html)
* [ scipy.io ](... | |
scipy_io/scipy_io_13_1.txt |
[ __ previous scipy.io.whosmat ](scipy.io.whosmat.html "previous page") [
next scipy.io.mminfo __ ](scipy.io.mminfo.html "next page")
© Copyright 2008-2024, The SciPy community.
Created using [ Sphinx ](http://sphinx-doc.org/) 7.2.6.
| |
scipy_io/844_56_0.txt | # Error when loading sparse array from numpy (npz) file #844 | |
scipy_io/7510_180_0.txt | Labels | |
scipy_io/7510_131_0.txt | So my question is, for a project that mixes 2d-arrays and scipy.sparse
matrices, should we just migrate from ndarray to matrix entirely? While this
forces us to use the "discouraged" class, it's an uphill battle to use
ndarrays when everything is always getting converted to matrices? | |
scipy_io/844_46_0.txt | New issue | |
scipy_io/844_44_0.txt | Additional navigation options | |
scipy_io/scipy_io_9_1.txt | of the array in ` f ` .
>>> whosmat(f)
[('a', (2, 3), 'int32'), ('b', (1, 5), 'double')]
[ __ previous scipy.io.savemat ](scipy.io.savemat.html "previous page") [
next scipy.io.readsav __ ](scipy.io.readsav.html "next page")
© Copyright 2008-2024, The SciPy community.
Created using [ ... | |
scipy_io/7510_124_0.txt | The following pure numpy operations all return a matrix: ` array + matrix ` ,
` matrix + array ` , ` array - matrix ` , ` matrix - array ` . Hence according
to [ @perimosocordiae ](https://github.com/perimosocordiae) 's rule, ` array +
sparse ` , ` sparse + array ` , ` array - sparse ` , and ` sparse - array `
should a... | |
scipy_io/844_145_0.txt | You can’t perform that action at this time. | |
scipy_io/7510_18_0.txt | * [ The ReadME Project GitHub community articles ](https://github.com/readme) | |
scipy_io/844_12_0.txt | By Solution | |
scipy_io/844_23_0.txt | # Search code, repositories, users, issues, pull requests... | |
scipy_io/7510_118_0.txt | edited | |
scipy_io/scipy_io_7_0.txt | [ SciPy v1.12.0 Manual ](../../index.html)
* [ Installing ](https://scipy.org/install/)
* [ User Guide ](../../tutorial/index.html)
* [ API reference ](../index.html)
* [ Building from source ](../../building/index.html)
* [ Development ](../../dev/index.html)
* [ Release notes ](../../release.html)
__ _... | |
scipy_io/7510_143_0.txt | To answer your question, I suggest taking a close look at the operations
producing your arrays/matrices, and deciding what the appropriate type is on a
case-by-case basis. It's fairly common to have separate code paths for sparse
vs dense inputs, as the time/space complexity concerns often change pretty
significantly b... | |
scipy_io/sparsesavenpzhtml_12_0.txt | * **matrix** ( [ _SparseArray_ ](sparse.SparseArray.html#sparse.SparseArray "sparse.SparseArray") ) – The matrix to save to disk | |
scipy_io/7510_33_0.txt | Name | |
scipy_io/scipy_io_3_0.txt | [ SciPy v1.12.0 Manual ](../../index.html)
* [ Installing ](https://scipy.org/install/)
* [ User Guide ](../../tutorial/index.html)
* [ API reference ](../index.html)
* [ Building from source ](../../building/index.html)
* [ Development ](../../dev/index.html)
* [ Release notes ](../../release.html)
__ _... | |
scipy_io/scipysparsesavenpzht_11_0.txt | # scipy.sparse.save_npz # | |
scipy_io/844_55_0.txt | Open | |
scipy_io/scipysparsesavenpzht_26_0.txt | [ ` numpy.savez_compressed `
](https://numpy.org/devdocs/reference/generated/numpy.savez_compressed.html#numpy.savez_compressed
"\(in NumPy v2.1.dev0\)") | |
scipy_io/scipysparsesavenpzht_38_0.txt | ](scipy.sparse.vstack.html "previous page") [ | |
scipy_io/scipy_io_15_0.txt | [ SciPy v1.12.0 Manual ](../../index.html)
* [ Installing ](https://scipy.org/install/)
* [ User Guide ](../../tutorial/index.html)
* [ API reference ](../index.html)
* [ Building from source ](../../building/index.html)
* [ Development ](../../dev/index.html)
* [ Release notes ](../../release.html)
__ _... | |
scipy_io/844_88_0.txt | Copy link | |
scipy_io/7510_0_0.txt | Skip to content | |
scipy_io/7510_189_0.txt | [ 
](/perimosocordiae) [

](/dhimmel) [
 ](/evfro)
[ 
* [ DevOps ](https://github.com/solutions/devops)
* [ DevSecOps ](https://resources.github.com/devops/fundamentals/devsecops) | |
scipy_io/7510_138_0.txt | ### | |
scipy_io/844_76_0.txt | All reactions | |
scipy_io/844_93_0.txt | You can make on by creating data in Python as a spare array and saving it to
disk.
For example using this example from scipy documentation: [
https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.save_npz.html
](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.save_npz.html) | |
scipy_io/7510_188_0.txt | 4 participants | |
scipy_io/sparsesavenpzhtml_18_0.txt | [ ` load_npz ` ](sparse.load_npz.html#sparse.load_npz "sparse.load_npz") , [
` scipy.sparse.save_npz `
](https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.save_npz.html#scipy.sparse.save_npz
"\(in SciPy v1.12.0\)") , [ ` scipy.sparse.load_npz `
](https://docs.scipy.org/doc/scipy/reference/generated/s... | |
scipy_io/844_70_0.txt | attached base packages:
[1] stats graphics grDevices utils datasets methods base | |
scipy_io/844_57_0.txt | [ swzCuroverse ](/swzCuroverse) opened this issue Sep 10, 2020 · 5 comments | |
scipy_io/sparsesavenpzhtml_19_0.txt | [ Previous ](sparse.round.html "round") [ Next ](sparse.squeeze.html
"squeeze") | |
scipy_io/7510_4_0.txt | [ Sign in
](/login?return_to=https%3A%2F%2Fgithub.com%2Fscipy%2Fscipy%2Fissues%2F7510) | |
scipy_io/sparsesavenpzhtml_13_0.txt | * **compressed** ( [ _bool_ ](https://docs.python.org/3/library/functions.html#bool "\(in Python v3.12\)") ) – Whether to save in compressed or uncompressed mode | |
scipy_io/844_80_0.txt | ### | |
scipy_io/7510_66_0.txt | **[ zietzm ](/zietzm) ** commented Jun 20, 2017 | |
scipy_io/844_138_0.txt | No branches or pull requests | |
gorequest/httprequests_24_0.txt | Now the client knows the destination’s IP address. It then opens a connection
to the server at that address, using the ` http ` protocol as specified. It
will initiate a GET request to the server which contains the IP address of the
host and optionally a data payload. The GET request contains the following
text: | |
gorequest/hereisthemostpopular_22_0.txt | <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
gorequest/hereisthemostpopular_41_0.txt | The ` fetch ` function takes one required parameter: the ` endpoint ` URL. It
also has other optional parameters as in the example below: | |
gorequest/gettingthesourceofaw_20_0.txt | # Define the URL of the website you want to scrape
url = 'https://example.com' | |
gorequest/gorequest_readme_45_0.txt | #### func (*Session) [ Get
](https://github.com/levigross/grequests/blob/9c307ef1f48d/session.go#L68) ¶
func (s *Session) Get(url [string](/builtin#string), ro *RequestOptions) (*Response, [error](/builtin#error))
Get takes 2 parameters and returns a Response Struct. These two options are:
1. A URL ... | |
gorequest/gorequest_readme_6_0.txt | ### Basic Examples
Basic GET request:
resp, err := grequests.Get("http://httpbin.org/get", nil)
// You can modify the request by passing an optional RequestOptions struct
if err != nil {
log.Fatalln("Unable to make request: ", err)
}
fmt.Println(resp.String())
// {
... | |
gorequest/allhttprequestsusing_36_0.txt | const express = require('express');
const methodOverride = require('method-override'); | |
gorequest/hereisthemostpopular_1_0.txt | [

](https://www.freecodecamp.org/news/) | |
gorequest/hereisthemostpopular_24_0.txt | jQuery Ajax is one of the simplest methods to make an HTTP call. | |
gorequest/gettingthesourceofaw_40_0.txt | Article Thumbnail
Making security fun one episode at a time
visit AWS
#Sponsored | |
gorequest/hereisthemostpopular_26_0.txt | The $.ajax method takes many parameters, some of which are required and others
optional. It contains two callback options ` success ` and ` error ` to handle
the response received. | |
gorequest/allhttprequestsusing_22_0.txt | Html Forms only support two types of Http requests. **Get** and **Post** . | |
gorequest/hereisthemostpopular_49_0.txt | npm install axios --save | |
gorequest/hereisthemostpopular_79_0.txt | You can check out the demo example [ on Stackblitz
](https://stackblitz.com/edit/angular-httpclinent) . | |
gorequest/allhttprequestsusing_13_0.txt | 2 min read | |
gorequest/hereisthemostpopular_8_0.txt | ### Ajax | |
gorequest/httprequests_80_0.txt | Made with ❤️ in NYC © 2024 Codecademy | |
gorequest/allhttprequestsusing_65_0.txt | \-- | |
gorequest/hereisthemostpopular_35_0.txt |  | |
gorequest/hereisthemostpopular_13_0.txt | const Http = new XMLHttpRequest();
const url='https://jsonplaceholder.typicode.com/posts';
Http.open("GET", url);
Http.send(); | |
gorequest/httprequests_58_0.txt | * [ Help Center ](https://help.codecademy.com) | |
gorequest/gorequest_readme_50_0.txt | #### func (*Session) [ Put
](https://github.com/levigross/grequests/blob/9c307ef1f48d/session.go#L78) ¶
func (s *Session) Put(url [string](/builtin#string), ro *RequestOptions) (*Response, [error](/builtin#error))
Put takes 2 parameters and returns a Response struct. These two options are:
1. A URL ... | |
gorequest/hereisthemostpopular_102_0.txt | You can [ make a tax-deductible donation here
](https://www.freecodecamp.org/donate/) . | |
gorequest/hereisthemostpopular_31_0.txt | The ` **$.post** ` method is another way to post data to the server. It take
three parameters: the ` url ` , the data you want to post, and a callback
function. | |
gorequest/allhttprequestsusing_38_0.txt | // configure methodOverride | |
gorequest/gorequest_readme_29_0.txt | #### func [ Patch
](https://github.com/levigross/grequests/blob/9c307ef1f48d/base.go#L24) ¶
func Patch(url [string](/builtin#string), ro *RequestOptions) (*Response, [error](/builtin#error))
Patch takes 2 parameters and returns a Response struct. These two options are:
1. A URL
2. A RequestOption... | |
gorequest/allhttprequestsusing_26_0.txt | By default, forms in html make get requests. | |
gorequest/hereisthemostpopular_54_0.txt | #### Making a Request with axios: | |
gorequest/httprequests_6_0.txt | Top languages & subjects | |
gorequest/hereisthemostpopular_50_0.txt | Then you’d need to import it | |
gorequest/gorequest_readme_3_0.txt | ### Features
* Responses can be serialized into JSON and XML
* Easy file uploads
* Easy file downloads
* Support for the following HTTP verbs ` GET, HEAD, POST, PUT, DELETE, PATCH, OPTIONS `
| |
gorequest/hereisthemostpopular_43_0.txt | As you can see, ` fetch ` has many advantages for making HTTP requests. You
can learn more about it [ here ](https://developer.mozilla.org/en-
US/docs/Web/API/Fetch_API/Using_Fetch) . Additionally, within fetch there are
other modules and plugins that allow us to send and receive a request to and
from the server side, ... | |
gorequest/hereisthemostpopular_25_0.txt |  | |
gorequest/gettingthesourceofaw_44_0.txt | Article Thumbnail
Build a Free-to-Use Open-Source AI Assistant With Streamlit, Microsoft Phi-3, & Ollama
by jaleltounsi
Apr 30, 2024
#open-source | |
gorequest/gorequest_readme_34_0.txt | #### func (*Response) [ ClearInternalBuffer
](https://github.com/levigross/grequests/blob/9c307ef1f48d/response.go#L200) ¶
func (r *Response) ClearInternalBuffer()
ClearInternalBuffer is a function that will clear the internal buffer that we
use to hold the .String() and .Bytes() data. Once you have us... | |
gorequest/hereisthemostpopular_74_0.txt | And in ` app.component.ts ` import ` fetchdataService ` | |
gorequest/httprequests_70_0.txt | * [ AI ](/catalog/subject/artificial-intelligence)
* [ Cloud Computing ](/catalog/subject/cloud-computing)
* [ Code Foundations ](/catalog/subject/code-foundations)
* [ Computer Science ](/catalog/subject/computer-science)
* [ Cybersecurity ](/catalog/subject/cybersecurity)
* [ Data Analytics ](/catalog/subject/data-an... | |
gorequest/allhttprequestsusing_1_0.txt | Sign up | |
gorequest/gettingthesourceofaw_22_0.txt | # Check if the request was successful (status code 200)
if response.status_code == 200:
# Print the HTML source code
print(response.text)
else:
print('Failed to retrieve the webpage. Status code:', response.status_code)
In this script: | |
gorequest/gettingthesourceofaw_24_0.txt | The following example shows how to use the above code to get the source code of the Google homepage: | |
gorequest/hereisthemostpopular_52_0.txt | Second, you can include axios using a CDN. | |
gorequest/gettingthesourceofaw_2_0.txt | paint-brush
Getting the Source of a Website with Python's Requests Library
by
@propy | |
gorequest/hereisthemostpopular_60_0.txt |  | |
gorequest/httprequests_23_0.txt | Suppose you want to check out the latest course offerings from [
http://codecademy.com ](http://codecademy.com) . After you type the URL into
your browser, your browser will extract the ` http ` part and recognize that
it is the name of the network protocol to use. Then, it takes the domain name
from the URL, in this c... | |
gorequest/gettingthesourceofaw_21_0.txt | # Send an HTTP GET request to the URL
response = requests.get(url) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.