Simple linear regression using gradient descent method
Recently, many small data mining projects have been done, using and comparing N-multiple algorithms, and understanding many machine learning tools, such as R language, Spark machine learning library, Python, Tensorflow and RapidMiner, etc. But I feel that I can't go deep into it, at best I just play with other people's tools. The advantages an ...
Posted by vishakh369 on Fri, 14 Jun 2019 14:22:15 -0700
Android Fragment Learning and Use - Advanced Chapter
I. overview
The last article has explained Fragment's life cycle, basic usage methods and the role of some api s. But if you want to use Fragment well in your project, you must be able to clearly manage its status. Here are some scenarios that you will encounter in actual development.
2. Fragment Back Stack Management
Activity is managed ...
Posted by ludjer on Wed, 29 May 2019 11:27:53 -0700
Server Socket Channel and Socket Channel of Java NIO
ServerSocketChannelServer Socket Channel role? What do you do full-time? 1. Monitor the new TCP link channel. 2. Create a new Socket ChannelServer Socket Channel does not have any capabilities Server Socket Channel does not have ...
Posted by sharugan on Tue, 21 May 2019 13:44:11 -0700
Spark Cluster Installation
spark version 1.6.0, Scala version 2.12, jdk version 1.8. spark has been used recently and is recorded here.
One master and three workers, together with Hadoop-2.7.7 cluster, namdenode on master and two datanode s on worker 1 and worker 2.
List-1
192.168.33.30 worker1 master
192.168.33.31 worker2
192.168.33.32 worker3
Modify the h ...
Posted by gidiag on Wed, 15 May 2019 19:09:29 -0700
spark-2.4.2.tgz Download and Compile
Does 51CTO have no directory function?Good or bad
========Welcome to Penguin for any questions ^-^1176738641
========
preparation in advance
folders creating
#Create five folders in the user directory
app #Storage application
software #Store application packages
data #Store test data
lib #Store jar pa ...
Posted by xshanelarsonx on Wed, 15 May 2019 08:05:26 -0700
Principle and Python Implementation of Collaborative Filtering (ALS)
Referring to ALS, we believe that everyone should not feel strange (not unfamiliar why you click in [cover your face]), it is a kind of collaborative filtering, and is integrated into Spark's MLIB library. This article explains the basic principles of ALS, and hand-in-hand, shoulder-to-shoulder with you to implement this algorithm.
Principle ch ...
Posted by Shaudh on Sun, 12 May 2019 01:57:02 -0700
Spark-SQL load and save operations
Case study:
Spark SQL load, save Case Practice - > Generic load Save
load and save operations:
For Spark SQL DataFrame, no matter what data source is created from, there are some common load and save operations. The load operation is mainly used to load data and create a DataFrame; the save operation is mainly use ...
Posted by Aurasia on Sun, 05 May 2019 21:50:39 -0700
Statistics of top3 Hot Search Terms in Spark-SQL
Implementation ideas
1. Get input RDD for raw data (HDFS file)
2. The filter operator is used to filter the data in the input RDD and filter out the data that meet the query conditions.
2.1 Common practice: directly in fitler operator function, use the external query condition (Map), but if this is done, the query condition ...
Posted by manx on Sat, 04 May 2019 09:10:39 -0700
Spark closure and serialization
The source of this article is: http://blog.csdn.net/bluishglc/article/details/50945032 Reproduction in any form is strictly prohibited, otherwise CSDN will be entrusted to the official protection of rights and interests!
Spark's official documentation repeatedly emphasizes operations that will work on RDD, w ...
Posted by MikeyNoedel on Wed, 24 Apr 2019 19:12:35 -0700
Learning Manifest, ClassTag, TypeTag in Scala
Introduction to Manifest
Manifest is a feature introduced by Scala 2.8 that allows compilers to obtain generic type information at runtime. stay JVM On the other hand, the generic parameter type T is "wiped" off at runtime, and the compiler treats T as an Object. So the specific information of T is not available; in order to get the ...
Posted by SheepWoolie on Sun, 14 Apr 2019 16:21:32 -0700