SAS Press author Matt Windham shows you how to use the SAS procedure PROC HTTP to grab raw data from a website.
Search Results: api (2283)
This post rounds out the year and my series of articles on SAS REST APIs. You can read all of my posts on this topic here. The first two articles in the series: Using SAS Viya REST APIs to access images from SAS Visual Analytics and Using SAS Cloud Analytics
Disclaimer: this article does not cover or promote any political views. It’s all about data and REST APIs. I am relieved, thankful, elated, glad, thrilled, joyful (I could go on with more synonyms from my thesaurus.com search for 'happy') November 6, 2018 has come and gone. Election day is over.
SASでは、従来からオープン・AIプラットフォームであるSAS Viyaの機能をPythonから効率的に活用いただくためのハイレベルなPython向けAPIパッケージであるDLPyを提供してきました。 従来のDLPyは、Viya3.3以降のディープラーニング(CNN)と画像処理(image action set)のために作成された、Python API向けハイレベルパッケージです。 DLPyではKerasに似たAPIを提供し、より簡潔なコーディングで高度な画像処理やCNNモデリングが可能でした。 そして、この度、このDLPyが大幅に機能拡張されました。 最新版DLPy1.0では、以下の機能が拡張されています。 ■ 従来からの画像データに加え、テキスト、オーディオ、そして時系列データを解析可能 ■ 新たなAPIの提供: ・ RNN に基づくタスク: テキスト分類、テキスト生成、そして 系列ラベリング(sequence labeling) ・ 一般物体検出(Object Detection) ・ 時系列処理とモデリング ・ オーディオファイルの処理と音声認識モデル生成 ■ 事前定義ネットワーク(DenseNet, DarkNet, Inception, and Yolo)の追加 ■ データビジュアライゼーションとメタデータハンドリングの拡張 今回はこれらの拡張機能の中から「一般物体検出(Object Detection)」機能を覗いてみましょう。 SAS Viyaでは従来から画像分類(資料画像1.の左から2番目:Classification)は可能でした。例えば、画像に映っている物体が「猫」なのか「犬」なのかを認識・分類するものです。 これに加えて、DLPy1.0では、一般物体検出(資料画像1.の左から3番目:Object Detection)が可能になりました。 資料画像1. (引用:Fei-Fei Li & Justin Johnson & Serena Yeung’s Lecture
This article is the first in a series of three publications covering REST APIs and their use in, and with SAS. Today, I want to cover a basic example using SAS Viya REST APIs to download an image from a report in SAS Visual Analytics.
SAS Viya has opened an entirely new set of capabilities, allowing SAS to analyze on cloud technology in real-time. One of the best new features of SAS Viya is its ability to pair with open source platforms, allowing developers the freedom of language and implementation to integrate with the power
SASでは、従来からSAS Viyaの機能をPythonなど各種汎用プログラミング言語から利用するためのパッケージであるSWATを提供していました。 これに加え、よりハイレベルなPython向けAPIパッケージであるDLPyの提供も開始され、PythonからViyaの機能をより効率的に活用することが可能となっています。 ※DLPyの詳細に関しては以下サイトをご覧ください。 https://github.com/sassoftware/python-dlpy DLPyとは DLPyの機能(一部抜粋) 1.DLPyとは DLPyは、Viya3.3以降のディープラーニングと画像処理(image action set)のために作成された、Python API向けハイレベルパッケージです。DLPyではKerasに似たAPIを提供し、ディープラーニングと画像処理のコーディングの効率化が図られています。既存のKerasのコードをほんの少し書き換えるだけで、SAS Viya上でその処理を実行させることも可能になります。 例えば、以下はCNNの層の定義例です。Kerasに酷似していることがわかります。 DLPyでサポートしているレイヤは、InputLayer, Conv2d, Pooling, Dense, Recurrent, BN, Res, Proj, OutputLayer、です。 以下は学習時の記述例です。 2.DLPyの機能(一部抜粋) 複数のイルカとキリンの画像をCNNによって学習し、そのモデルにテスト画像を当てはめて予測する内容を例に、DLPyの機能(一部抜粋)を紹介します。 2-1.メジャーなディープラーニング・ネットワークの実装 DLPyでは、事前に構築された以下のディープラーニングモデルを提供しています。 VGG11/13/16/19、 ResNet34/50/101/152、 wide_resnet、 dense_net また、以下のモデルでは、ImageNetのデータを使用した事前学習済みのweightsも提供(このweightsは転移学習によって独自のタスクに利用可能)しています。 VGG16、VGG19、ResNet50、ResNet101、ResNet152 以下は、ResNet50の事前学習済みのweightsを転移している例です。 2-2.CNNの判断根拠情報 heat_map_analysis()メソッドを使用し、画像の何処に着目したのかをカラフルなヒートマップとして出力し、確認することができます。 また、get_feature_maps()メソッドを使用し、CNNの各層の特徴マップ(feature map)を取得し、feature_maps.display()メソッドを使用し、取得されたfeature mapの層を指定して表示し、確認することもできます。 以下は、レイヤー1のfeature mapの出力結果です。 以下は、レイヤー18のfeature mapの出力結果です。 2-3.ディープラーニング&画像処理関連タスク支援機能 2-3-1.resize()メソッド:画像データのリサイズ 2-3-2.as_patches()メソッド:画像データ拡張(元画像からパッチを生成) 2-3-3.two_way_split()メソッド:データ分割(学習、テスト) 2-3-4.plot_network()メソッド:定義したディープラーニングの層(ネットワーク)の構造をグラフィカルな図として描画 2-3-5.plot_training_history()メソッド:反復学習の履歴表示
An earlier SGMAP blog used the BUBBLE statement to overlay point data on top of an Open Street Map. However, not all map features are points. Some are enclosed areas called polygons. Some map polygons share common borders such as states and counties. Others are separate, non-contiguous regions such as national parks
I've used SAS with a bunch of different REST APIs: GitHub, Brightcove, Google Analytics, Lithium, LinkedIn, and more. For most of these I have to send user/password or "secret" application tokens to the web service so that it knows who I am and what data I can retrieve. I do
I wish this were a blog about a new super-affordable airline, but instead capital flight is the illegal movement of money from its country of origin, transit or destination. This movement of money through facilitators is creating a hyper-breed of criminal enterprise using the regulations of the world’s financial systems
Depending on who you speak with you will get varying definitions and opinions regarding demand sensing and shaping from sensing short-range replenishment based on sales orders to manual blending of point-of-sales (POS) data and shipments. Most companies think that they are sensing demand when in fact they are
There is one thing that is consistent during this time of year – planning Breast Cancer Awareness events at SAS and throughout the community. I have a deep passion due to the family history, genetics and simply wanting to help others. I’m also a strong believer in research, education and
In this blog post I am going to cover the example of importing data into SAS Viya using Cloud Analytic Services (CAS) actions via REST API. For example, you may want to import data into a CASLib via REST API. This means you can perform an import of data outside
Every day before I even wake up, I have little "SAS robots" that do work for me. These are SAS batch jobs that gather data from external services and build data marts, generate reports, and send e-mail. One of those SAS jobs gathers Google Analytics data about our SAS blogs
Anteriormente, el sector empresarial se enfrentaba constantemente a la escases de información de aquello que ocurría en su compañía, tanto a nivel de procesos internos como de interacción con los clientes, siendo este último punto el más relevante por estar ligado la fidelización o desencanto de la marca. Sin embargo,
Today is #EmbraceYourGeekness day, and you are either reveling in this new crazy town inhabited by Pokémon GO, or you are hiding in your house trying to avoid all of the Pokémon GO zombies wandering around. But since I'm living in SAS these days -- not just the place (at
Kunde: Ah, Sie zeigen uns in dieser Demo so ein Glossar. Ach, jaja, nett, das haben wir schon! Ich: Oh, und benutzen Sie persönlich das in Ihrem Unternehmen oft? Kunde: Nee, das ist veraltet. Da schaut keiner rein, weil das pflegt ja keiner richtig… Oder doch? Hm.
El especialista en BI puede ejecutar los algoritmos remotamente y pagar solo por lo que utiliza. Esto evita que las empresas realicen grandes inversiones en infraestructura y en personal dedicado a la mantención del hardware y respaldo de los datos. Actualmente la Inteligencia de Negocios (BI) es una práctica común
Todos quedamos asombrados -una vez más- cuando la computadora DeepMind de Google con su programa AlphaGo derrotó en 4 de 5 juegos al que se considera mejor jugador de Go del mundo, el coreano Lee Sedol. Lo asombroso del caso, es que el Go es un juego extremadamente complejo, al
REpresentational State Transfer (REST) is an architectural style for designing web services that access a system's resources using HTTP methods. With the release of DataFlux Data Management 2.7 earlier this year, three new REST Application Programming Interfaces (APIs) are now available: Data Management Server Batch Jobs Data Management Server Real-time
SAS Global Forum is the premier worldwide event for SAS professionals. It brings nearly 5,000 users and executives from across the world together to share new techniques and technologies to help expand users’ SAS skills. But an event of this size (hundreds of presentations, dozens of workshops and several networking
As support analysts in the SAS Technical Support division, we answer many phone calls from SAS customers. As members of the SAS Foundation team, we get questions that vary significantly in content from all of the areas that we support. We offer coding tips and suggestions as well as point
Kapitalplanung trifft auf Stresstesting: In der aktuellen Marktsituation sind Banken herausgefordert, aktuelle Geschäftsfelder zu prüfen und neue zu identifizieren. Dabei gilt es, stets das Risiko und das notwendige Kapital im Blick zu behalten, sowohl unter ökonomischen als auch regulatorischen Aspekten. Traditionell ist die Geschäftsplanung stark in den Bereichen Finance und
The Wall Street Journal recently published a study of the top 17 medical areas (or body parts) that venture capitalist investments are likely to benefit. They used graphs to summarize the results, but "the graph guy" in me just couldn't resist trying to improve them. Did my improvements help? -
What sends a data management product to the top of the “hot” list? In a word – speed. Especially when that speed can gracefully accommodate the huge world of streaming data from the Internet of Things. One of SAS’ hottest (and recently enhanced) products, SAS Event Stream Processing is an
We’ve all heard the old saw, “If you torture data long enough, eventually it will confess to something.” But when it comes to spurring real change, how about ditching the dungeon-master act and thinking like a venture capitalist instead? Wouldn’t that pay bigger dividends? That was the tip from Ravi
Analytics as it pertains to the employees and the workforce is taking the industry by storm. Recently, I read an article in the Wall Street Journal about how companies are harnessing the power of analytics to help them identify staff who are likely to leave. In the past few weeks
Election fever has hit the United Kingdom as the days count down to 7th May 2015. This is likely to be one of the most uncertain elections in recent memory, with nearly 10 parties struggling for votes across England, Scotland, Wales and Northern Ireland. Results night will be tense, with the different
Innovation within hospitality drives awareness, service delivery, guest engagement, and brand differentiation. SAS asked a panel of experts to comment on how innovation is shaping the hospitality industry. According to many of our experts, analytics is at the heart of innovation. Learn more in this white paper on building
While perusing the SAS 9.4 DS2 documentation, I ran across the section on the HTTP package. This intrigued me because, as DS2 has no text file handling statements I assumed all hope of leveraging Internet-based APIs was lost. But even a Jedi is wrong now and then! And what better