Movatterモバイル変換


[0]ホーム

URL:


CN105701007A - Method and system for extracting typical test case of tax system - Google Patents

Method and system for extracting typical test case of tax system
Download PDF

Info

Publication number
CN105701007A
CN105701007ACN201410714228.7ACN201410714228ACN105701007ACN 105701007 ACN105701007 ACN 105701007ACN 201410714228 ACN201410714228 ACN 201410714228ACN 105701007 ACN105701007 ACN 105701007A
Authority
CN
China
Prior art keywords
neuron
test case
data
tax
som
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410714228.7A
Other languages
Chinese (zh)
Inventor
任钦正
靳宏彪
张莹
果然
谢宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino CorpfiledCriticalAisino Corp
Priority to CN201410714228.7ApriorityCriticalpatent/CN105701007A/en
Publication of CN105701007ApublicationCriticalpatent/CN105701007A/en
Pendinglegal-statusCriticalCurrent

Links

Landscapes

Abstract

The invention discloses a method for extracting the typical test case of a tax system. The method comprises the following steps: determining a final amount of test samples; obtaining key information in original data to determine a dimensionality of input data, and carrying out normalization processing on the information; setting a SOM (Self-organizing Maps) learning parameter; and carrying out initialization utilization on a SOM algorithm to carry out repeated iterative computation until stabilization is achieved so as to obtain a stabilized neuron, and selecting a sample point which has a shortest Euclid distance with each neuron as a final test sample. The invention also provides a system for extracting the typical test case of the tax system. The method and the system for extracting the typical test case of the tax system can be wide in coverage and real.

Description

Extract the method and system of tax system typical case's test case
Technical field
The present invention relates to tax controlling equipment field, be specifically related to a kind of method and system extracting tax system typical case's test case。
Background technology
Along with the research and development of a large amount of novel tax systems are reached the standard grade, how to choose maximally effective tax data and tax system is tested become the problem that tester to solve。The method of now commonly used acquisition test case has equivalent partition method, namely the input domain of program is divided into some parts (subset), then choosing a few representative data from each part as test case, the effect in testing of the representative data of each class is equivalent to other values of this apoplexy due to endogenous wind;Boundary analysis, a kind of Black-box Testing the method namely boundary value of input or output tested, usual boundary analysis is supplementing as parity price class partitioning, and in this case, its test case is from the border of equivalence class;Error inference method, namely based on various mistakes that may be present all in experience and intuition estimating program, thus the method etc. of design test case targetedly。
But these method great majority are engineer makes up test case, or manually randomly choose truthful data as test data。The test case of these method choice all inevitably there will be Test coverage extensively or test the problems such as untrue。
Summary of the invention
Embodiment of the present invention technical problem to be solved there are provided a kind of method and system covering extensive and real extraction tax system typical case's test case。
A kind of method extracting tax system typical case's test case provided by the present invention, including:
Determine the quantity that test sample is final;
Obtain the key message in initial data, to determine the dimension of input data, and these information are normalized;And
SOM learning parameter is set, initializes and utilize SOM algorithm to carry out the calculating that iterates, until stable, to obtain the neuron after stablizing, and choose the sample point minimum with each neuron Euclidean distance as final test sample。
Wherein, in described step " normalized ", the key message in described initial data includes the tax amount of money, Late Payment Fee, generation date, tax generation date and date differences of declaring dutiable goods, and wherein the data after normalized are designated as: x=[x1,x2,x3,...,xm]T, m represents the dimension of data。
Wherein, described step " normalized " also includes: start to initialize synapse: wj=[wj1,wj2,wj3,...,wjm,]T, j=1,2,3...l, in network, each each input space dimension of neuronic synaptic weight vector sum is identical, and wherein l is neuronic sum in network。
Wherein, described step " initialization utilizes SOM algorithm to carry out the calculating that iterates " including:
Select maximum inner productNeuron as activating neuron, utilize index i (x) to identify the neuron of Optimum Matching input vector x, wherein i (x)=argminj||x-wj| |, j=A,
If hi,jRepresenting topological neighborhood centered by triumph neuron i and comprise a combination and make neuron, one of them neuron is j, selects Gaussian function:
Wherein di,jIt is integer and is equal to | j-i |。Under two-dimensional caseCan be defined as:
And the σ of SOM width declines over time, it is possible to be defined as:
Use discrete vector form, it is assumed that the weight vector at time n neuron j is wjN (), updates weight vector wj(n+1) it is defined as at time n+1:
wj(n+1)=wj(n)+η(n)hj,i(x)N () (x (n)-w (n)), such training network is until stablizing, to obtain output neuron。
Present invention also offers a kind of system extracting tax system typical case's test case, including:
Key message acquiring unit, for obtaining the key message of initial data, to determine the dimension of input data;
Data normalization processing unit, for being normalized the key message of above-mentioned acquisition;
Synapse initialization unit, is used for initializing synapse;
Iterative computation unit, is used for arranging SOM learning parameter, and initialization utilizes SOM algorithm to carry out the calculating that iterates, until stable, to obtain the neuron after stablizing;And
Euclidean distance computing unit, the sample point minimum for calculating Euclidean distance between the neuron of above-mentioned acquisition, these sample points seek to the test case obtained。
Wherein, the key message in described initial data includes the tax amount of money, Late Payment Fee, generation date, tax generation date and date differences of declaring dutiable goods, and wherein the data after normalized are designated as: x=[x1,x2,x3,...,xm]T, m represents the dimension of data。
Wherein, the synaptic weight vector of neuron j is designated as: wj=[wj1,wj2,wj3,...,wjm,]T, j=1,2,3...l, wherein l is neuronic sum in network。
Wherein, described iterative computation Unit selection maximum inner productNeuron as activating neuron, and utilize index i (x) to identify the neuron of Optimum Matching input vector x, wherein i (x) is determined by following equation: i (x)=argminj||x-wj| |, j=A, if hi,jRepresenting topological neighborhood centered by triumph neuron i and comprise a combination and make neuron, one of them neuron is j, selects Gaussian function:
Wherein di,jIt is integer and is equal to | j-i |, under two-dimensional caseIt is defined as:
And the σ of SOM width declines over time, it is defined as:
Use discrete vector form, it is assumed that the weight vector at time n neuron j is wjN (), updates weight vector wj(n+1) it is defined as at time n+1: wj(n+1)=wj(n)+η(n)hj,i(x)N () (x (n)-w (n)), such training network is until stablizing, to obtain stable output neuron。
The method and system of said extracted tax system typical case's test case have the advantage that 1) test sample selected by the present invention is most representational truthful data, avoid and artificially make up the problem that data are likely bigger with reality deviation, add the credibility of test。2) present invention effectively compresses from historical data and repeats data sample in a large number, significantly reduces the working strength of tester, improve the work efficiency of tester while ensureing test quality。3) present invention utilizes the characteristic of SOM algorithm order preserving map cleverly, effectively saves the error sample in truthful data and boundary sample, improves the reliability of test。
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings;
Fig. 1 is the flow chart that the present invention extracts the better embodiment of the method for tax system typical case's test case。
Fig. 2 is the block diagram that the present invention extracts the better embodiment of the system of tax system typical case's test case。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments。Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention。
First, before embodiment is described, it is necessary to some herein presented terms are made an explanation。Such as:
If occurring herein using the term such as " first ", " second " to describe various element, but these elements should not limited by these terms。These terms are only used for distinguishing an element and another element。Therefore, " first " element can also be referred to as " second " element without departing from the teachings of the present invention。
In addition, it is to be understood that when mentioning an element " connection " or " coupled " to another element, it can be directly connected or be directly coupled to another element or can also there is intermediary element。On the contrary, when mentioning that an element " being directly connected " or " directly coupling " are to another element, be then absent from intermediary element。
The various terms occurred in this article are used only for describing the purpose of specific embodiment and being not intended as limitation of the invention。Unless context clearly dictates otherwise, then singulative is intended to also include plural form。
When using term " including " and/or " including " in this manual, these terms specify the existence of described feature, entirety, step, operation, element and/or parts, but are also not excluded for the existence of other features more than one, entirety, step, operation, element, parts and/or its group and/or additional。
About embodiment:
What a kind of system and method extracting tax system typical case's test case of the present invention to solve is how to choose to have the sample representing meaning most as field test data from a large amount of historical data sample in the past。Solve this problem mainly to seek to solve effectively to choose test data, selected data should cover whole system data scope, it is possible to prominent error sample, effective letter lid boundary sample, and test size should be reduced on this basis as far as possible, alleviate tester's pressure。Therefore the present invention utilizes the data compression of self-organizing map neural network (SOM) and the characteristic of order preserving map, uses Self-organizing Maps algorithm to extract most representational test sample from a large amount of historical datas。
Refer to the flow chart that Fig. 1, Fig. 1 are the better embodiment of a kind of method extracting tax system typical case's test case of the present invention。The better embodiment of the method for described extraction tax system typical case's test case includes:
Step S1: determine the quantity that test sample is final, the i.e. neuronal quantity of Self-organizing Maps algorithm。In general, this numerical value is generally determined according to scale of the project and historical data amount。
Step S2: take out initial data, it is thus achieved that in data, date and the key messages such as date differences of declaring dutiable goods occur for the tax amount of money, Late Payment Fee, generation date, the tax, it is determined that the dimension m of input data, and these information are normalized。It is denoted as:
X=[x1,x2,x3,...,xm]T,
Wherein, in network, each each input space dimension of neuronic synaptic weight vector sum is identical, and the synaptic weight vector of neuron j is designated as:
wj=[wj1,wj2,wj3,...,wjm,]T, j=1,2,3...l,
Wherein l is neuronic sum in network。
Step S3: arrange SOM learning parameter, initializes and utilizes SOM algorithm to carry out the calculating that iterates, until stable。Obtain the neuron after stablizing, choose and each neuron Euclidean distanceMinimum sample point is as final test sample。
In order to make the above-mentioned purpose of the present invention, feature and advantage more aobvious and understandable, carry out above-mentioned each step below describing in detail further:
Described step S2 specifically includes: chooses critical data in historical data and quantifies, in tax data, tax take, the tax rate, tax revenue date, tolerance natural law etc. are all critical datas, also will according to the service logic stressing different choice stress test of different tax systems, selecting the relevant data of these service logics in detail and quantify, the data after quantization should present in vector form:
X=[x1,x2,x3,...,xm]T
Just should starting to initialize synapse after determining the dimension of input data, wherein the synaptic weight vector of neuron j is designated as:
wj=[wj1,wj2,wj3,...,wjm,]T, j=1,2,3...l。
In network, each each input space dimension of neuronic synaptic weight vector sum is identical, and wherein l is neuronic sum in network。
Described step S3 specifically includes:
Select maximum inner productNeuron as activate neuron, based on inner productMaximized matching criterior is mathematically equivalent to vector x and wjEuclidean distance minimize, if index of reference i (x) identifies the neuron of Optimum Matching input vector x, then can by following conditional decision i (x):
I (x)=argminj||x-wj| |, j=A。
If hi,jRepresenting topological neighborhood centered by triumph neuron i and comprise a combination and make neuron, one of them neuron is j, is typically chosen Gaussian function:
hi,j=exp(dj,i22σ2),j=A,
Wherein di,jIt is integer and is equal to | j-i |。Under two-dimensional caseCan be defined as:
d(i,j)2=||rj-ri||2,
And the σ of SOM width declines over time, it is possible to be defined as:
σ(n)=σ0exp(-nτ),n=0,1,2....
Use discrete vector form, it is assumed that the weight vector at time n neuron j is wjN (), updates weight vector wj(n+1) it is defined as at time n+1:
wj(n+1)=wj(n)+η(n)hj,i(x)(n)(x(n)-w(n))。
Training network is until stablizing, it is thus achieved that output neuron, calculates the sample point minimum with these neuron Euclidean distances, and these sample points seek to the test case obtained。
The method of said extracted tax system typical case's test case has the advantage that 1) test sample selected by the present invention is most representational truthful data, avoid and artificially make up the problem that data are likely bigger with reality deviation, add the credibility of test。2) present invention effectively compresses from historical data and repeats data sample in a large number, significantly reduces the working strength of tester, improve the work efficiency of tester while ensureing test quality。3) present invention utilizes the characteristic of SOM algorithm order preserving map cleverly, effectively saves the error sample in truthful data and boundary sample, improves the reliability of test。
Refer to shown in Fig. 2, for the block diagram of the better embodiment of a kind of system extracting tax system typical case's test case of the present invention。The better embodiment of the system of described extraction tax system typical case's test case includes key message acquiring unit 1, data normalization processing unit 2, synapse initialization unit 3, iterative computation unit 5 and Euclidean distance computing unit 6。
Wherein said key message acquiring unit is used for obtaining in initial data the tax amount of money, date and the key messages such as date differences of declaring dutiable goods occur for Late Payment Fee, generation date, the tax, to determine the dimension m of input data。
Described data normalization processing unit is for being normalized the key message of above-mentioned acquisition, and the result after process is designated as: x=[x1,x2,x3,...,xm]T
Described synapse initialization unit is used for initializing synapse, is designated as: wj=[wj1,wj2,wj3,...,wjm,]T, j=1,2,3...l, wherein in network, each each input space dimension of neuronic synaptic weight vector sum is identical, and l is neuronic sum in network。
Described iterative computation unit arranges SOM learning parameter, and initialization utilizes SOM algorithm to carry out the calculating that iterates, until stable, to obtain the neuron after stablizing。Specifically, described iterative computation Unit selection maximum inner productNeuron as activating neuron, and utilize index i (x) to identify the neuron of Optimum Matching input vector x, wherein i (x) can be determined by following equation: i (x)=argminj||x-wj| |, j=A, if hi,jRepresenting topological neighborhood centered by triumph neuron i and comprise a combination and make neuron, one of them neuron is j, is typically chosen Gaussian function:
Wherein di,jIt is integer and is equal to | j-i |, under two-dimensional caseCan be defined as:And the σ of SOM width declines over time, it is possible to be defined as:
Use discrete vector form, it is assumed that the weight vector at time n neuron j is wjN (), updates weight vector wj(n+1) it is defined as at time n+1: wj(n+1)=wj(n)+η(n)hj,i(x)N () (x (n)-w (n)), such training network, until stablizing, can obtain stable output neuron。
The sample point that described Euclidean distance computing unit is minimum for calculating Euclidean distance between the neuron of above-mentioned acquisition, these sample points seek to the test case obtained。
The system and method use Self-organizing Maps algorithm of said extracted tax system typical case's test case compresses from historical data and repeats data sample in a large number, it is ensured that test sample is succinctly effective;And utilize the characteristic of SOM algorithm order preserving map, effectively save the error sample in truthful data and boundary sample, improve the reliability of test。
These are only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every equivalent structure utilizing description of the present invention and accompanying drawing content to make or equivalence flow process conversion; or directly or indirectly it is used in other relevant technical fields, all in like manner include in the scope of patent protection of the present invention。

Claims (8)

CN201410714228.7A2014-11-282014-11-28Method and system for extracting typical test case of tax systemPendingCN105701007A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201410714228.7ACN105701007A (en)2014-11-282014-11-28Method and system for extracting typical test case of tax system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201410714228.7ACN105701007A (en)2014-11-282014-11-28Method and system for extracting typical test case of tax system

Publications (1)

Publication NumberPublication Date
CN105701007Atrue CN105701007A (en)2016-06-22

Family

ID=56231033

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201410714228.7APendingCN105701007A (en)2014-11-282014-11-28Method and system for extracting typical test case of tax system

Country Status (1)

CountryLink
CN (1)CN105701007A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107967489A (en)*2017-11-292018-04-27中国科学院空间应用工程与技术中心A kind of method for detecting abnormality and system
CN113722210A (en)*2021-08-072021-11-30中国航空工业集团公司沈阳飞机设计研究所Test case generation method and device based on data model distribution

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20010049817A1 (en)*2000-05-312001-12-06Yugo KashiwagiSystem developing method, storage medium, information processing apparatus, information terminal apparatus, information processing system, and information processing method
CN101042673A (en)*2007-04-202007-09-26北京航空航天大学Software testing system and testing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US20010049817A1 (en)*2000-05-312001-12-06Yugo KashiwagiSystem developing method, storage medium, information processing apparatus, information terminal apparatus, information processing system, and information processing method
CN101042673A (en)*2007-04-202007-09-26北京航空航天大学Software testing system and testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任钦正: "动车组主动运维服务状态监测与故障诊断技术研究与应用", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》*

Cited By (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107967489A (en)*2017-11-292018-04-27中国科学院空间应用工程与技术中心A kind of method for detecting abnormality and system
CN113722210A (en)*2021-08-072021-11-30中国航空工业集团公司沈阳飞机设计研究所Test case generation method and device based on data model distribution

Similar Documents

PublicationPublication DateTitle
CN110400022B (en)Cash consumption prediction method and device for self-service teller machine
Ghil et al.Extreme events: dynamics, statistics and prediction
CN109389494B (en)Loan fraud detection model training method, loan fraud detection method and device
CN109559230B (en)Bank transaction group discovery method and system based on overlapping community discovery algorithm
CN103400143B (en) A Data Subspace Clustering Method Based on Multi-view
CN109410036A (en) A fraud detection model training method and device, and fraud detection method and device
CN112800053A (en)Data model generation method, data model calling device, data model equipment and storage medium
CN111815169A (en)Business approval parameter configuration method and device
CN113313215B (en)Image data processing method, image data processing device, computer equipment and storage medium
US12166353B2 (en)Determination of phase connections in a power grid
CN107818491A (en)Electronic installation, Products Show method and storage medium based on user's Internet data
CN110634060A (en)User credit risk assessment method, system, device and storage medium
CN113918471A (en)Test case processing method and device and computer readable storage medium
CN116485406A (en)Account detection method and device, storage medium and electronic equipment
CN117522403A (en)GCN abnormal customer early warning method and device based on subgraph fusion
CN114154617A (en) A method and system for identifying abnormal power consumption of low-voltage residential users based on VFL
CN116071150A (en)Data processing method, bank product popularization, wind control system, server and medium
CN110222869B (en) Method, device, electronic device and storage medium for identifying merchant's behavior of skipping payment
CN105701007A (en)Method and system for extracting typical test case of tax system
Namvar et al.Handling uncertainty in social lending credit risk prediction with a Choquet fuzzy integral model
CN113240513A (en)Method for determining user credit line and related device
Hepburn et al.Enforcing perceptual consistency on generative adversarial networks by using the normalised laplacian pyramid distance
CN110910241B (en)Cash flow evaluation method, apparatus, server device and storage medium
CN115345687A (en)Cross-website commodity alignment method and device
CN118378952A (en)Digital employee evaluation method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20160622

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp