Preprint
Article

This version is not peer-reviewed.

Application of a Neural-Network Algorithm Based on Orthogonal Laguerre Polynomials to the Solution of the Cauchy Problem for Differential Equations with a Variable-Order Fractional Derivative on the Example of the Fractional Lane–Emden Equation

A peer-reviewed article of this preprint also exists.

Submitted:

24 September 2026

Posted:

28 September 2026

You are already at the latest version

Abstract
The paper proposes, implements, and tests a neural-network method based on orthogonal Laguerre polynomials for the numerical solution of the Cauchy problem for a singular nonlinear Lane--Emden equation with a variable-order fractional derivative. Such equations rarely admit analytical solutions, while classical finite-difference schemes struggle with the singularity near zero and the nonlocal character of the fractional derivative. The approximate solution is expanded in modified Laguerre polynomials shifted to the initial point, so the Cauchy initial conditions are satisfied exactly. The network has one trainable linear layer; nonlinearity is provided by the polynomial basis. The weights are found by minimizing a loss function containing the equation residual at collocation points, a weight factor improving accuracy near the singularity, and regularization limiting weight growth. Training uses Adam with an adaptive learning-rate scheduler and early stopping. Implementation is in Python with PyTorch. A vectorized tensor version accelerates computations by about thirty times compared with the loop version. On test problems with known solutions, the maximum absolute error reaches about five ten-thousandths; for a numerical reference, about five thousandths; in a stress test, about three hundredths. It is promising for singular variable-order fractional differential equations and can be parallelized on central and graphics processors.
Keywords: 
;  ;  ;  ;  ;  ;  

1. Introduction

Modeling physical processes using differential equations often encounters limitations of the classical mathematical apparatus. In recent decades, there has been increased interest in using fractional calculus to describe systems with memory and self-similarity effects [1,2]. Unlike classical integer-order derivatives, fractional operators allow one to take into account hereditary properties and nonlocal interactions, which makes them a powerful tool for modeling a wide range of phenomena—from viscoelasticity to anomalous diffusion to spread of viruses [3,4,5,6,7]. A special place among them is occupied by variable-order operators, where the exponent of the fractional derivative is itself a function of the spatial or temporal coordinate. Such operators provide a more flexible description of systems whose rheological or diffusive properties change depending on the state or position in space [8,9,10]. One of the actively developing directions is the application of fractional calculus to problems of mathematical physics and astrophysics.
One of the important models of mathematical physics is the Lane–Emden equation [11,12,13,14], which describes the equilibrium of spherical gas clouds in stellar astrophysics. The Lane–Emden equation arises in the study of polytropic stars, the density distribution in isothermal gas spheres, and in the theory of gravitational equilibrium [15]. The introduction of a fractional derivative into this equation allows one to take into account nonlocal properties of gravitational interaction and complex thermodynamic processes, which makes the model more adequate for describing real astrophysical objects. In recent years, a number of numerical and approximate methods have been proposed for solving fractional Lane–Emden equations, including variational-iteration methods [16], spectral methods based on Legendre polynomials [17], collocation methods with wavelets [18], and other approaches [19,20]. However, most of these works consider either an integer order of the derivative or a constant fractional order, which limits their applicability to problems with variable memory.
The analytical solution of the Cauchy problem for the fractional singular nonlinear Lane–Emden differential equation exists only in particular cases (for example, for an integer exponent), which necessitates the development of efficient numerical methods [21]. Traditional approaches, such as finite-difference schemes, encounter difficulties due to the singularity of the solution near zero and the nonlocal nature of the fractional derivative. This requires the construction of special grids and leads to an increase in computational costs. In the case of a variable order of the fractional derivative, the situation becomes even more complicated, since the kernel of the fractional operator depends on the coordinate, and classical difference schemes require adaptation to each value of the exponent [22,23,24,25,26]. The problem of increasing computational costs in the numerical solution of fractional differential equations of both constant and variable order can be partially solved by parallelization, implementing both CPU versions of such algorithms and hybrid CPU-GPU analogues [27]. Accelerating computations is important when solving coefficient inverse problems for equations with fractional derivatives [28]. However, if such a numerical method has an unavoidable sequential part, the parallelization efficiency may be low.
In parallel with the development of fractional calculus, there is a rapid development of machine-learning methods. Neural-network approaches to solving differential equations (Physics-Informed Neural Networks, PINNs) have shown their effectiveness for a wide class of problems [29,30,31]. They allow one to obtain an approximate solution in analytical form without requiring grid construction and easily adapt to various types of equations and boundary conditions [32]. PINNs are successfully applied in deformable solid mechanics, heat-transfer problems, aerodynamics, and other fields [33,34]. Among the most recent developments in this direction, we note the VooPINN architecture [35]—a physics-informed neural network with a variable-order operator designed for forward and inverse problems of time-fractional partial differential equations. VooPINN demonstrates that variable-order fractional operators can be embedded directly into a neural-network framework, but it relies on a deep multilayer architecture and does not address singular ordinary differential equations with a variable-order fractional derivative, which is the subject of the present work. However, classical neural-network architectures with multilayer perceptrons are not always optimal for problems with singularities or a specific domain of definition. In addition, training deep networks requires significant computational resources and can be unstable in the presence of singularities in the solution.
In this paper, we propose a combined approach that uses the advantages of both orthogonal polynomials and neural-network optimization methods. We develop a neural-network method (LaNN—Laguerre Neural Network), where orthogonal Laguerre polynomials act as activation functions [36,37,38,39], and the basis functions are shifted to the point x 0 , which ensures exact satisfaction of the initial conditions of the Cauchy problem at x 0 . This choice is not accidental: Laguerre polynomials are defined on a semi-infinite interval and form a complete orthogonal basis, which makes them an ideal tool for expanding the solution of the Cauchy problem [38]. Note that neural-network methods based on Laguerre polynomials have already been applied to solve ordinary differential equations [36], as well as equations of the Lane–Emden–Fowler type [40]. However, these works do not consider variable-order fractional derivatives and do not use basis shifting for exact satisfaction of the initial conditions at x 0 . Unlike classical physics-informed neural networks (PINNs), which require a deep architecture, the proposed method is a network with a single “weight” layer, which simplifies the training process and interpretation of the results. The single-layer structure and the absence of separate nonlinear activations are a consequence of the fact that the Laguerre basis already provides the necessary nonlinearity. Close in spirit approaches based on wavelet neural networks also demonstrate effectiveness for fractional singular models [41], but the use of Laguerre polynomials provides a more natural representation of the solution on a semi-infinite interval and automatic satisfaction of the initial conditions. It is also worth noting a recent work [42], in which a Laguerre neural network optimized by a genetic algorithm was applied to fractal-fractional Bagley–Torvik equations. That study confirms the efficiency of the Laguerre basis for nonlocal fractional models, but it does not consider variable-order fractional derivatives, singular Lane–Emden-type nonlinearities, or exact satisfaction of Cauchy initial conditions via a shifted basis—the features that distinguish the present LaNN method.
The aim of this work is to develop, programmatically implement, and test a neural-network method based on orthogonal Laguerre polynomials with basis shifting for the numerical solution of the Cauchy problem for a fractional Lane–Emden differential equation of variable order. According to the results obtained in [36], among single-layer polynomial networks, LaNN occupies an intermediate position: it is more accurate than a network based on Chebyshev polynomials and faster than a network based on Legendre polynomials. For the class of singular fractional problems under consideration, where a combination of acceptable accuracy and computational efficiency is important, such a compromise seems justified. In addition, unlike ChNN, the Laguerre basis is defined on a half-axis, which agrees better with the nonlocality of the fractional operator. The paper describes the architecture of the LaNN network, the training algorithm based on the Adam method, and the loss function taking into account the equation residual, and provides a software implementation in the Python programming language, including the possibility of parallelization. The influence of the variable order of the fractional derivative on the complexity of the neural network is analyzed.
The paper is organized as follows. In the first section, preliminary information about orthogonal Laguerre polynomials and variable-order fractional calculus is presented. In the second section, the statement of the Cauchy problem for the fractional Lane–Emden equation is formulated. In the third section, the architecture of the LaNN network with a shifted basis, the loss function, and the training algorithm are described. In the fourth section, the software implementation of the method is considered, including vectorized and loop variants of computations. In the fifth section, the results of computational experiments are presented, and the accuracy, stability, and computational efficiency of the proposed approach are analyzed. In the conclusion, the main results are summarized and directions for further work are discussed.

2. Preliminary Information

Let us introduce some preliminary information that we will rely on in this paper.

2.1. Orthogonal Laguerre Polynomials

Laguerre polynomials are classical orthogonal polynomials widely used in mathematics, physics, and engineering. They are solutions of the Laguerre differential equation and form a complete orthogonal system on a semi-infinite interval [37,38].
Definition 1. Laguerre polynomials, denoted as L n ( x ) , are defined as solutions of the second-order linear ordinary differential equation (Laguerre equation) [38]:
x y ′ ′ + ( 1 − x ) y ′ + n y = 0 ,
where n is a nonnegative integer. They can be defined through the Rodrigues formula [38], which is useful for their generation:
L n ( x ) = e x n ! d n d x n ( e − x x n ) ,
and also represented as a closed sum [38]:
L n ( x ) = ∑ j = 0 n n j ( − 1 ) j j ! x j .
Main properties [38].
1. Orthogonality and completeness. A key property of Laguerre polynomials is their orthogonality on the interval [ 0 , ∞ ) with weight function e − x [38]:
∫ 0 ∞ e − x L n ( x ) L m ( x ) d x = 0 , n ≠ m ,
as well as completeness, which means that any function f ( x ) with finite norm ∫ 0 ∞ f 2 ( x ) e − x d x < ∞ can be represented as a convergent series in Laguerre polynomials. These properties make them very useful for expanding functions into series.
2. Recurrence relations. Laguerre polynomials satisfy several recurrence relations that simplify their computation [38]:
( n + 1 ) L n + 1 ( x ) = ( 2 n + 1 − x ) L n ( x ) − n L n − 1 ( x ) , L 0 ( x ) = 1 , L 1 ( x ) = 1 − x .
3. Relation with the derivative [38]:
x L n ′ ( x ) = n L n ( x ) − n L n − 1 ( x ) .
4. Generating function [38]
∑ n = 0 ∞ L n ( x ) t n = 1 1 − t e − x t / ( 1 − t )
allows one to obtain all polynomials simultaneously.

2.2. Elements of Fractional Calculus

Fractional calculus can be studied in more detail in the monographs [1,2]. We will focus on some definitions and properties of Riemann–Liouville and Gerasimov–Caputo variable-order fractional derivatives [19,20,21,22,23,24,25].
Definition 2. Let the function f ( x ) be integrable on the interval [ 0 , 1 ] , and let the function α ( x ) ∈ C [ 0 , 1 ] be sign-positive. Then the Riemann–Liouville fractional integral of order α ( x ) is defined as follows:
I 0 x α ( x ) R L f ( x ) = 1 Γ ( α ( x ) ) ∫ 0 x ( x − τ ) α ( x ) − 1 f ( τ ) d τ , x > 0 ,
where Γ ( α ( x ) ) is the Euler gamma function.
Definition 3. Let m be an integer such that m − 1 < α ( x ) < m . Then the Riemann–Liouville fractional derivative of order α ( x ) is defined as follows:
D 0 x α ( x ) R L f ( x ) = 1 Γ ( m − α ( x ) ) d m d x m ∫ 0 x ( x − τ ) m − α ( x ) − 1 f ( τ ) d τ ,
where d m d x m is the ordinary integer-order derivative of order m.
Definition 4. The Gerasimov–Caputo fractional derivative of order m − 1 < α ( x ) < m is defined as follows:
D 0 x α ( x ) G C f ( x ) = 1 Γ ( m − α ( x ) ) ∫ 0 x ( x − τ ) m − α ( x ) − 1 f ( m ) ( τ ) d τ ,
where f ( m ) ( x ) = d m f ( x ) d x m is the ordinary integer-order derivative of order m.
Note an important property of the fractional derivative (2):
D 0 x α ( x ) G C x μ = Γ ( μ + 1 ) Γ ( μ − α ( x ) + 1 ) x μ − α ( x ) , μ > m − 1 , 0 , μ ∈ { 0 , … , m − 1 } .
From property (3) it follows that D 0 x α ( x ) G C x μ = 0 for μ ∈ { 0 , … , m − 1 } . Therefore, in various applications, the Gerasimov–Caputo fractional derivative is usually chosen, since classical initial conditions are specified for it, and its derivative of a constant gives zero.
Remark on the relation between the Riemann–Liouville and Gerasimov–Caputo derivatives. The well-known relation
D 0 x α G C f ( x ) = D 0 x α R L f ( x ) − ∑ k = 0 m − 1 f ( k ) ( 0 ) x k − α Γ ( k − α + 1 ) ,
is valid for a constant order α . In the case of a variable order α ( x ) , it does not hold in general, since α ( x ) enters both the kernel and the gamma function, and the outer derivative d m / d x m also acts on α ( x ) . Therefore, in this paper we use definition (2) directly and rely on property (3), which remains valid for a variable order as well, since α ( x ) is constant with respect to the integration variable τ .
In what follows, we will call differential equations with fractional derivatives (1) or (2) fractional differential equations.

3. Problem Statement

We consider the Cauchy problem for the fractional Lane–Emden equation:
D 0 x α ( x ) G C y ( x ) + 2 x y ′ ( x ) + 4 ( 2 e y ( x ) + e y ( x ) / 2 ) = f ( x ) , y ( x 0 ) = y 0 , y ′ ( x 0 ) = y 0 ′ , x ∈ [ x 0 , 1 ] ,
where y ( x ) ∈ C 2 [ x 0 , 1 ] , the Gerasimov–Caputo variable-order fractional derivative 1 < α ( x ) < 2 , α ( x ) ∈ C [ x 0 , 1 ] has the form according to (2):
D 0 x α ( x ) G C y ( x ) = 1 Γ ( 2 − α ( x ) ) ∫ 0 x ( x − τ ) 1 − α ( x ) y ′ ′ ( τ ) d τ .
Note that in the case when f ( x ) = 0 , α ( x ) = 2 , we obtain the Cauchy problem for the classical Lane–Emden equation with exponential nonlinearity [3,4,8,9].
Remark on the lower limit of the fractional derivative. When stating the Cauchy problem for an equation with a fractional derivative D 0 x α ( x ) G C , the lower limit of the fractional operator plays an important role. If the initial conditions are specified at a point x 0 > 0 , then the operator D 0 x α ( x ) G C for x > x 0 uses the values of y ′ ′ ( τ ) on the entire interval [ 0 , x ] , including the segment [ 0 , x 0 ] , which is not described by the initial conditions. In this case, the Cauchy problem at x 0 for an operator with lower limit 0 is not well-posed without specifying the prehistory of the solution on [ 0 , x 0 ] .
In this paper, two scenarios are considered.
First scenario (original problem). In Section 6, for f ( x ) = 0 , we set x 0 = 0 . The initial conditions are specified at x = 0 , and the lower limit of the fractional derivative coincides with the point where the initial conditions are specified. There is no prehistory, and the statement is well-posed.
Second scenario (test problem with a known exact solution). When verifying the method, the manufactured-solution technique is used: the equation is considered on the entire interval [ 0 , 1 ] with a known exact solution y e x ( x ) that satisfies the operator D 0 x α ( x ) G C . The initial conditions at x 0 > 0 are taken from this exact solution, so that the prehistory on [ 0 , x 0 ] is implicitly specified by y e x ( x ) itself. This is a standard technique for testing numerical methods, and no contradiction with the statement arises.
It should be emphasized that for the neural-network approximation y L a N N ( x ) , coincidence with y e x ( x ) on [ 0 , x 0 ] is not guaranteed: the basis functions are defined for all x ≥ 0 through the analytic continuation ψ n ( x − x 0 ) , but the equation on [ 0 , x 0 ] is not included in the loss function. Therefore, examples with x 0 > 0 in Section 6 should be interpreted precisely as manufactured-solution tests, where the prehistory is known from the exact solution, and not as a demonstration of a well-posed Cauchy problem with arbitrary x 0 > 0 . Practical problems with x 0 > 0 and unknown prehistory require a transition to the operator (7); the modification of the method in this direction was not carried out and is a subject of further work.
For practical problems in which the initial conditions are specified at a point x 0 > 0 and the prehistory on [ 0 , x 0 ] is unknown, one should use the fractional derivative with lower limit x 0 :
D x 0 , x α ( x ) G C y ( x ) = 1 Γ ( 2 − α ( x ) ) ∫ x 0 x ( x − τ ) 1 − α ( x ) y ′ ′ ( τ ) d τ .
Such an operator takes into account only the part of the solution that is determined by the initial conditions at x 0 and leads to a well-posed Cauchy problem. The transition from D 0 x α ( x ) G C to D x 0 , x α ( x ) G C in the proposed LaNN method reduces to replacing x k − α ( x ) with ( x − x 0 ) k − α ( x ) in the formulas for the fractional derivative of the basis functions. This can be a subject of a separate study; in this paper, the main emphasis is on the case x 0 = 0 (original problem) and on the verification of the method using the manufactured solution (test examples).
The classical Lane–Emden equation with exponential nonlinearity arises in the description of hydrostatic equilibrium of spherically symmetric polytropic stars, isothermal gas spheres, and gravitationally bound clouds. In this context, x is a dimensionless radial coordinate, and y ( x ) is a dimensionless Emden function, which can be interpreted as the logarithm of density, temperature, or as a dimensionless gravitational potential. The term 2 x y ′ ( x ) reflects the spherical geometry of the Laplace operator: it appears in the transition from Cartesian coordinates to radially symmetric ones. The nonlinear term 4 ( 2 e y ( x ) + e y ( x ) / 2 ) models an effective source/self-action that depends exponentially on the state of the medium. If y is interpreted as the logarithm of dimensionless density, then e y is proportional to density, and e y / 2 is a weaker nonlinear factor that may correspond, for example, to heat release, reaction, or nonlinear coupling with the gravitational field.
The Gerasimov–Caputo variable-order fractional derivative D 0 x α ( x ) G C y ( x ) in the model equation (5) generalizes the second derivative and introduces the effect of spatial nonlocality into the model. Unlike the classical second derivative, which is determined only by the local behavior of the function, the fractional operator takes into account the prehistory or distribution of the solution on the entire interval [ 0 , x ] . The variable order α ( x ) means that the degree of nonlocality changes with radius: in internal regions and on the periphery, the memory contribution may be different. This allows one to describe media whose rheological, thermal, or gravitational properties depend on the local state. The right-hand side f ( x ) plays the role of an effective external source or sink: it can be a mass distribution, energy release, or an external field. The initial conditions y ( x 0 ) = y 0 , y ′ ( x 0 ) = y 0 ′ specify the value of the function and its gradient at the starting radius.

4. LaNN Architecture and Its Description

The neural-network method allows one to obtain the solution of problem (5) in the form:
y L a N N ( x ) = y 0 + y 0 ′ ( x − x 0 ) + ∑ n = 0 N w n ψ n ( x − x 0 ) ,
where ψ n ( ξ ) = ξ 2 L n ( ξ ) = ∑ j = 0 n l n , j ξ j + 2 , ξ = x − x 0 are modified Laguerre polynomials with a shift to the point x 0 that satisfy the initial conditions (5):
y L a N N ( x 0 ) = y 0 , y L a N N ′ ( x 0 ) = y 0 ′ ,
l n , j = n j ( − 1 ) j j ! are binomial coefficients, N is the order of the Laguerre polynomial, and w n are weight coefficients that are refined during training. The basis shift to the point x 0 ensures exact satisfaction of the initial conditions of the Cauchy problem for any x 0 > 0 , which is fundamentally important for singular problems where x 0 may be different from zero.
It should be emphasized that the basis shift to the point x 0 ensures exact satisfaction of the initial conditions but does not change the lower limit of the fractional operator. In this paper, the fractional derivative is taken with the operator D 0 x α ( x ) G C with lower limit 0. This corresponds either to the case x 0 = 0 (original problem) or to the case when the solution on [ 0 , x 0 ] is known and taken into account in the right-hand side (test examples with manufactured solution). For practical problems with x 0 > 0 and unknown prehistory, one should use the operator D x 0 , x α ( x ) G C ; the corresponding formulas are obtained by replacing x k − α ( x ) with ( x − x 0 ) k − α ( x ) .
Training proceeds as follows. A training sample of fixed size M is chosen from x ∈ [ x 0 , 1 ] . The points of this sample are called collocation points.
Remark 1. Collocation points can be chosen in different ways, for example, uniformly on the entire interval [ x 0 , 1 ] or subject to some distribution, for example, logarithmic or Chebyshev.
Then, at the chosen collocation points, the residual between the left-hand side of equation (5) with account for (8) and its right-hand side is calculated:
L ( x i ) = D 0 x α ( x ) G C y L a N N ( x i ) + 2 x i y L a N N ′ ( x i ) + 4 2 e y L a N N ( x i ) + e y L a N N ( x i ) / 2 − f ( x i ) ,
i = 1 , … , M . Here, the Gerasimov–Caputo fractional derivative of the shifted basis is calculated taking into account the binomial expansion:
D 0 x α ( x ) G C y L a N N ( x ) = ∑ n = 0 N w n ∑ j = 0 n l n , j ∑ k = 2 j + 2 j + 2 k ( − x 0 ) j + 2 − k Γ ( k + 1 ) Γ ( k + 1 − α ( x ) ) x k − α ( x ) .
Note that the linear terms y 0 + y 0 ′ ( x − x 0 ) give a zero contribution to the Gerasimov–Caputo fractional derivative of order 1 < α ( x ) < 2 , since D 0 x α ( x ) G C for μ ∈ { 0 , 1 } .
Then we form the loss function L o s s ( w ) as the normalized weighted mean-square value of the residual at the collocation points (9) with the addition of L 2 -regularization of the weights w n of solution (8):
L o s s ( w ) = 1 M ∑ i = 1 M φ ( x i ) φ ¯ · L ( x i ) 2 + λ ∑ n = 0 N w n 2 ,
where λ is the regularization parameter, φ ( x i ) are the weights of the collocation points, and φ ¯ is the mean value.
Remark 2. It should be noted that the weight coefficients φ ( x i ) for the collocation points can be chosen to improve accuracy in the region of small values, where the solution has a singularity.
Remark 3.  L 2 -regularization allows one to avoid overfitting and excessively large weight coefficients w n of solution (8). The neural network can adapt to noise or specific features of a particular set of collocation points, which leads to nonsmooth or nonphysical solutions. L 2 -regularization limits the growth of weight coefficients, promoting a smoother approximation. In addition, with a large number of parameters (high polynomial degree), the weight coefficients can become very large, causing numerical instability (Runge’s phenomenon). Regularization mitigates this effect. The loss function shows how strongly the equation is violated at the collocation points (10). The smaller the loss, the better the network “knows” the solution. To achieve this, it is necessary to reduce this loss by updating (choosing) the weight coefficients at each iteration.
Remark 4. The process of constructing the loss function (10) is called the forward pass. It forms a computational graph that stores the sequence of operations and is necessary for the subsequent calculation of derivatives (gradients).
The weights are updated in accordance with the Adam (Adaptive Moment Estimation) algorithm from the family of gradient descent methods.
The formulas for the weights w = ( w 0 , … , w N ) at iteration k are as follows:
1. Gradient
g k ( w ) = ∇ w L ( w k − 1 ) ,
where ∇ w = ∂ ∂ w 0 , ∂ ∂ w 1 , … , ∂ ∂ w N , L is the loss function (10).
Remark 5. It should be noted that usually the gradients (11) are calculated using the backpropagation algorithm. The backward pass through the computational graph from the loss function node to the model weights is performed using the chain rule. Therefore, the process of constructing gradients is called the backward pass.
2. Biased estimates of the first and second moments:
m k = β 1 m k − 1 + ( 1 − β 1 ) g k , v k = β 2 v k − 1 + ( 1 − β 2 ) g k 2 ,
the parameter values β 1 = 0.9 , β 2 = 0.999 are taken by default.
3. Bias correction:
m ^ k = m k 1 − β 1 k , v ^ k = v k 1 − β 2 k .
4. Weight update:
w k = w k − 1 − η m ^ k v ^ k + ϵ ,
where η is the initial learning rate, ϵ is a small constant to avoid division by zero (usually 10 − 8 ).
One training cycle (epoch) consists of one forward and one backward pass over all collocation points, as well as an optimizer step (Adam), i.e., updating the weights to reduce the loss function. For each training epoch, after updating the weights, it is necessary to zero the gradients to prevent their accumulation.
As a result, after a given number of training epochs, solution (8) is output with an optimal set of weight coefficients w n . The architecture of the network with a shifted basis is shown in Figure 1.
Here, the input x is transformed into the shifted variable ξ = x − x 0 . Then the basis functions ψ n ( ξ ) = ξ 2 L n ( ξ ) are multiplied by the trainable weights w n . The term y 0 + y 0 ′ ( x − x 0 ) ensures exact satisfaction of the initial conditions. The results are summed and fed to the output y L a N N ( x ) .

5. Implementation of the LaNN Architecture

The LaNN neural-network architecture was implemented in the Python programming language [43] using the PyTorch library [44].
The main implementation stages are as follows:
1. Initialization of parameters—input of the derivative order α , the polynomial degree N, the number of collocation points, training and regularization parameters, choice of the weight function, early-stopping settings, and the coordinate of the initial point x 0 . The early-stopping condition can be, for example, the absence of improvement by at least 0.1% from the best value over a number of epochs, after which training stops. This can save computational time. The regularization parameter is 10 − 5 by default.
2. Construction of the neural-network model—the LaguerreNN class, which implements the approximation of the solution using shifted Laguerre polynomials and automatically takes into account the initial conditions (5) at the point x 0 . The LaguerreNN class implements the fractional derivative with the operator D 0 x α ( x ) G C . The x0 parameter specifies the basis shift point and the point where the initial conditions are specified. For x0 = 0, the statement of the Cauchy problem is well-posed without additional assumptions. For x0 > 0, the method should be applied either in the manufactured-solution mode (when the prehistory is known from the exact solution) or after replacing the operator with D x 0 , x α ( x ) G C .
3. Formation of the training set—a set of points on the interval. Three distributions are provided: uniform using torch.linspace; logarithmic using torch.logspace, which gives more points near zero, where the solution and its derivative change rapidly; and the Chebyshev distribution, which gives clustering of points near the boundaries of the interval. The number of points is specified by the user (by default 10,000).
4. Training of the model—minimization of the special loss function (10), including the residual (9), the weight function, and regularization. The weight function allows one to focus on regions with large errors (for example, near zero). The user can choose an arbitrary expression, for example φ ( x ) = x . If the user does not choose weights, this is equivalent to the uniform case, where φ ( x ) = 1 . Before use, the weights are normalized so that their mean value equals 1 (this does not affect the optimum but stabilizes the gradient scale).
5. Optimizer—Adam is used with a given initial learning rate. To automatically reduce the step on the loss-function plateau, the ReduceLROnPlateau scheduler is used with a reduction factor of 0.5 and a patience of 500 epochs. The scheduler controls the learning rate η , which can decrease if the loss function stops decreasing over a given number of epochs, i.e., the learning rate is adaptive.
6. Evaluation of results—comparison with the exact solution on a test grid, output of a table and graphs. The maximum and mean absolute errors are calculated, and a comparison table at the nodes x is constructed. Visualization includes four graphs: comparison of the exact and approximate solutions; error on a logarithmic scale; loss function; and the function α ( x ) .
7. Computation modes. When solving the Cauchy problem (5) for fractional differential equations using the neural-network approach, the computational costs can be significant, especially when using a large number of collocation points (up to 200,000), high polynomial degrees (up to 30), and a large number of training epochs (up to 10,000). To accelerate computations in the developed method, parallelization algorithms implemented using the PyTorch library and the hardware capabilities of modern computing systems are used.
Two variants of the forward pass of the network are implemented:
  • Loop (forward_loop): sequential summation over indices using Python loops. A slow mode, but more understandable.
  • Vectorized (forward_vectorized): all operations are performed using PyTorch tensor operations on the CPU. At the algorithmic level, the key technique here is replacing loops over polynomial degrees (from 0 to degree) with tensor operations. In the forward_vectorized variant, all basis functions, their derivatives, and fractional derivatives are calculated using broadcasting and matrix multiplications. This allows efficient use of CPU SIMD instructions. As shown in Section 5, the vectorized version works on average 30 times faster than the loop version, and the use of vectorization does not require changing the network architecture and is completely equivalent in output values.
Some computational aspects: all tensors and the model are moved to the device specified in the device variable (CPU); for numerical stability, the gamma function is calculated using torch.lgamma and exponentiation to avoid overflow for large argument values; the polynomial degree is limited to 30 to prevent instability and overflow.

6. Simulation Results

For further calculations, a personal computer with the following characteristics was used: operating system Windows 11; processor 12th Gen Intel(R) Core(TM) i9-12900KF; logical cores: 24; physical cores: 16; current frequency: 3200 MHz; maximum frequency: 3200 MHz; current CPU load: 2.3%; RAM: 128 GB; graphics card NVIDIA GeForce RTX 4060 Ti. The calculations were performed without using CPU multithreading or CUDA cores.
Remark 6. It should be noted that the selection of hyperparameters (number of collocation points, number of epochs, and regularization coefficient) was carried out manually based on a series of preliminary experiments. The criteria were: training stability, absence of solution oscillations, absence of overfitting, accuracy on the test grid, and acceptable computation time. The absence of systematic automatic hyperparameter selection is a limitation of the work. A more rigorous approach, for example Bayesian optimization or grid search taking into account training time, can be implemented in the future.
Remark 7. (Remark on the statement of initial conditions.) In all examples of this section where the right-hand side f ( x ) = 0 (Examples 3 and 4), the initial conditions are specified at the point x 0 = 0 :
y ( 0 ) = y 0 , y ′ ( 0 ) = y 0 ′ .
The computational domain begins at x min > 0 , which allows avoiding the singularity of the term 2 x y ′ ( x ) at zero. The shift of the Laguerre basis is performed to the point x 0 = 0 , which automatically ensures satisfaction of the initial conditions. In test examples 1 and 2, the initial conditions are specified at the point x 0 > 0 and are taken from the exact solution; the prehistory on [ 0 , x 0 ] is known in this case, and the statement of the Cauchy problem is well-posed.
Remark 8. (On collocation points and the interval [ 0 , x min ] .) In all examples, the collocation points are chosen on the interval [ x min , x max ] , where x min > 0 . The contribution of the segment [ 0 , x min ] to the fractional derivative is taken into account analytically through the global LaNN ansatz: the basis functions ψ n ( x − x 0 ) are defined for all x ≥ 0 , and their fractional derivative is calculated by the formula given in Section 3. The initial conditions at zero fix the linear terms. At the same time, the equation on the interval [ 0 , x min ] is not included in the loss function, and the behavior of the solution there is controlled only by the analytic continuation of the ansatz. This may introduce additional error that decreases with decreasing x min . The study of the sensitivity of the method to the choice of x min was not carried out in this paper and is a direction for further research.

6.1. Test Example 1

Consider the Cauchy problem where equation (5) is specified with a special right-hand side where α x = ( 2 − 0.03 x ) x 3 :
D 0 x α ( x ) G C y ( x ) + 2 x y ′ ( x ) + 4 ( 2 e y ( x ) + e y ( x ) / 2 ) = f ( x ) ,
f x = 12 x 3 − α ( x ) Γ ( 4 − α ( x ) ) − 0.72 x 4 − α ( x ) Γ ( 5 − α ( x ) ) + 12 x − 0.24 x 2 + 4 2 e α x + e α x / 2 ,
Thanks to the basis shift to the point x 0 = 0.01 , the initial conditions are satisfied exactly:
y ( 0.01 ) = 0.0000019997 , y ′ ( 0.01 ) = 0.0005998799 , x ∈ [ 0.01 , 1 ] .
The solution of problem (12) is the function
y e x ( x ) = α ( x ) x 3 = ( 2 − 0.03 x ) x 3 .
The hyperparameters for LaNN training are given in Table 1.
The collocation points are chosen uniformly distributed on [ 0.01 , 1 ] . Training was completed in 13.42 s, best Loss: 1.49 × 10 − 3 . The LaNN training results are given in Table 2.
At the table nodes, the error varies from 4.547474 × 10 − 13 at x = 0.01 to 4.823208 × 10 − 4 at x = 0.89 ; at x = 1 , the error is 1.192093 × 10 − 7 . The largest absolute errors are concentrated in the middle and right parts of the interval. Near zero, the absolute error is small due to the smallness of the solution itself, but the relative error there can be noticeable. This is expected for a singular fractional Lane–Emden equation with the point x 0 = 0.01 and variable order α ( x ) . The weight φ ( x ) = x shifts the emphasis to the right part. Note that the initial conditions at x 0 = 0.01 are satisfied exactly due to the basis shift.
It can be seen (Table 3) that MAE and RMSE are close, which indicates the absence of large outliers. Figure 2 shows graphs of the exact (13) and neural-network solutions, the loss function, and the absolute error.
Note that Loss decreases from ∼ 10 3 to ∼ 1.5 × 10 − 3 . After about 8000 epochs, the improvement slows down, so early stopping is possible here to save time.
To verify the stability of the calculations with respect to the initialization of the LaNN weights for Example 1, a computational experiment with 10 independent training runs was conducted. The reproducibility parameters of the computational experiment are given in Table 4.
The experiment was conducted without early stopping, so δ and patience are not defined. The results of the experiment are given in Table 5.
The relative spread of accuracy metrics (ME, MAE, RMSE) does not exceed 9.2%, and that of training time is 2.5% (Table 6).
The largest spread is observed for the internal metric Best Loss (11.0%), which is expected, since it reflects the optimization trajectory rather than the quality of the final solution. All 10 runs produced a correct solution without oscillations or outliers (Figure 3).
It should also be noted that a comparison was made with a neural network based on the Legendre basis under identical conditions (settings). Five independent runs (seeds) were performed, and the averaged metrics were calculated and are presented in Table 7.
The Laguerre-basis neural network demonstrated superior performance here: it outperformed the others by approximately 2.2 times in terms of BestLoss, 2.9 times in RMSE, 3.0 times in ME, and 2.5 times in MAE; regarding ±Std, the Laguerre network was more stable, showing less variation between runs; and there was virtually no difference in training time.
This example demonstrates that LaNN can yield better results than other polynomial-based neural networks.
Remark 9. Equation (12) has a singularity in the term 2 x y ′ ( x ) near the boundary point x = 0 ; therefore, the numerical solution obtained on the basis of LaNN can differ strongly due to large values of the derivative, which leads to a large deviation from the true solution and complicates the physical interpretation of the process. Therefore, to improve accuracy, it is necessary to cluster points near the boundary point x = 0 . This can be achieved by choosing the distribution of collocation points according to the Chebyshev law.

6.2. Test Example 2 (Stress Test)

Consider the Cauchy problem (12). Choose the interval [ 10 − 10 , 1 ] ; here x 0 = 10 − 10 , so y ( 10 − 10 ) ≈ 2 · 10 − 30 , y ′ ( 10 − 10 ) ≈ 6 · 10 − 20 . Also choose the weight φ ( x ) = 1 / x , which will shift the emphasis to the left part of the interval under consideration, i.e., clustering of points near the singularity x = 0 will occur. The values of the remaining parameters for LaNN training are taken from Table 1, and the collocation points are still uniformly distributed. The training results are given in Table 8.
We see (Table 8) that near the singularity x = 0 , a significant deviation from the exact solution (13) occurs, negative values appear in the numerical solution, and the absolute error accumulates (Figure 4). We observe signs of poor conditioning of the method.
If the collocation points are chosen according to the Chebyshev law, which produces clustering of points near the boundaries of the interval [ 10 − 10 , 1 ] , we obtain a better result (Table 9).
From Table 9, we see that the error near the boundaries is significantly lower than the error in Table 8, and all values of the numerical solution are positive. Note that the maximum error in this example reaches ∼ 2.7 × 10 − 2 (at x = 1 ), which is higher than in Example 1 and is explained by the greater singularity of the problem on the interval [ 10 − 10 , 1 ] .
The LaNN training times for the vectorized version ( t v e c ), built on tensor operations, and the loop version ( t c i c ), based on classical loops, are given in Table 10. The hyperparameter values were taken from Table 1. The collocation points were chosen uniformly and according to Chebyshev.
Here one can see that the vectorized version trains on average 30 times faster than the loop version (the ratio t c i c / t v e c ranges from 27.4 to 30.6). We see that the vectorized implementation in PyTorch based on tensor operations can give a speedup of about 30 times for this example. One can try to further accelerate LaNN training by implementing a parallel algorithm for CPU or GPU, but this is a topic for future research.

6.3. Test Example 3

Consider problem (5) with f ( x ) = 0 , y ( 0 ) = 1 , y ′ ( 0 ) = 0 . Parameters for LaNN training: α ( x ) = 2 − 0.03 x ; number of epochs 8000; initial learning rate η = 0.005 ; L 2 -regularization coefficient λ = 10 − 5 ; polynomial degree N = 15 ; number of collocation points M = 20 , uniformly distributed on [ 0.01 , 1 ] ; weights for the residual: φ 1 ( x ) = 1 , φ 2 ( x ) = x , φ 3 ( x ) = 1 / x .
Since in this case we do not know the exact solution of problem (5) as in Example 1, we need to find a numerical solution. For this purpose, we use an implicit nonlocal finite-difference scheme of the first order of accuracy based on the Grünwald–Letnikov approximation y G L with the Gerasimov–Caputo correction [45]. The calculations were performed on a uniform grid with step h = ( x max − x min ) / N , N = 500 . The nonlinear equation at each step was solved by Newton’s method with accuracy 10 − 12 . The scheme has the first order of approximation in h. A rigorous study of the grid convergence of the reference solution y G L was not carried out in this paper; indirect confirmation of its suitability is its agreement with the analytical solution in test examples 1 and 2, where the exact solution is known.
The calculated data are given in Table 11.
Table 11 shows how the choice of the weight function φ ( x ) in the loss function affects the accuracy of the LaNN neural-network solution when solving the fractional Lane–Emden equation with f ( x ) = 0 and variable order α ( x ) = 2 − 0.03 x . The numerical solution y G L obtained by the Grünwald–Letnikov finite-difference scheme with the Gerasimov–Caputo correction is used as a reference. The table compares three weight variants: φ 1 = 1 , φ 2 = x , φ 3 = 1 / x . The columns E r r 1 , E r r 2 , E r r 3 are the absolute errors | y G L − y L a N N | for the corresponding weights.
At the left boundary point x = 0.01 , all three LaNN variants give values practically coinciding with the reference y G L . The errors are 5.50 × 10 − 7 for φ 1 = 1 , 1.09 × 10 − 5 for φ 2 = x , and 1.64 × 10 − 7 for φ 3 = 1 / x . This confirms that correct account of the initial conditions y ( 0 ) = 1 , y ′ ( 0 ) = 0 does not introduce additional error at the boundary of the computational domain.
The reference solution y G L decreases from ≈ 0.9995 at x = 0.01 to ≈ − 1.3390 at x = 1.00 , changing sign in the middle part of the interval. All three neural-network solutions y L a N N qualitatively reproduce this behavior without giving nonphysical oscillations or outliers. The differences between the variants with different φ are small compared to the amplitude of the solution.
The error is mainly of order 10 − 3 – 10 − 4 . The most noticeable deviations are concentrated in the region x ∼ 0.12 – 0.45 , where the errors reach ( 3 - - 6 ) × 10 − 3 . Closer to the right boundary, the errors usually decrease to ( 0.8 - - 1.3 ) × 10 − 3 . This indicates acceptable accuracy of the method for this example, where the exact analytical solution is unknown and the reference is obtained numerically. Note that the errors given in Table 11 at individual nodes (up to 6 × 10 − 3 ) do not contradict the integral metrics M E = 2.37 × 10 − 3 , M A E = 1.56 × 10 − 3 , R M S E = 1.63 × 10 − 3 for the case φ 1 = 1 : the integral metrics were calculated on a denser test grid of 2000 points, while the table contains only 10 characteristic nodes, and in the neighborhood of x ∼ 0.12 – 0.23 the local error may exceed the mean.
The weight φ 1 = 1 gives the most uniform error distribution. For φ 1 = 1 , the error varies from 5.66 × 10 − 3 at x = 0.12 to 9.27 × 10 − 4 at x = 1.00 , without sharp local spikes. In terms of integral metrics, this variant has the smallest maximum error: M E = 2.37 × 10 − 3 with M A E = 1.56 × 10 − 3 and R M S E = 1.63 × 10 − 3 . That is, the uniform weight gives a balanced approximation.
The weight φ 2 = x shifts the emphasis to the right but does not give an explicit gain. For φ 2 = x , the error in the left section x = 0.12 – 0.23 turns out to be the largest among the three variants: 6.11 × 10 − 3 and 4.57 × 10 − 3 . At the same time, the total loss function for this variant is the highest: L o s s = 8.92 × 10 − 3 , and M E = 2.84 × 10 − 3 . This means that concentration on the right part of the interval does not lead to an improvement in global accuracy for this example.
The weight φ 3 = 1 / x improves training and accuracy near the left boundary. For φ 3 = 1 / x , the smallest value of the loss function is achieved: L o s s = 1.01 × 10 − 3 , which indicates faster and more stable training. Near the initial point, the error is minimal ( 1.64 × 10 − 7 at x = 0.01 ), and at a number of right points, for example x = 0.67 , 0.78 , 1.00 , the error is also smaller than for the other variants. At the same time, the maximum error M E = 2.43 × 10 − 3 only slightly exceeds the value for φ 1 = 1 . Thus, the weight 1 / x is a successful compromise: it strengthens the left part, where the solution and its derivative change faster, and at the same time does not worsen the overall accuracy.
The choice of the weight function controls not so much the overall accuracy as the distribution of the error. The mean metrics for all three cases are close: M A E ≈ 1.5 × 10 − 3 , R M S E ≈ 1.6 × 10 − 3 . This means that LaNN is stable with respect to the choice of φ ( x ) , but the local accuracy in different parts of the interval can be purposefully redistributed. If uniform accuracy is needed, φ 1 = 1 is better; if behavior near the singularity x → 0 is more important, φ 3 = 1 / x is preferable.
Consider an example with a different function α ( x ) .

6.4. Test Example 4

Consider problem (5) with f ( x ) = 0 and the same initial conditions as in Example 3: y ( 0 ) = 1 , y ′ ( 0 ) = 0 . Parameters for LaNN training: α ( x ) = 1 + sin ( x ) , φ ( x ) = 1 , the remaining parameters are taken from Example 3.
According to Table 12 and Figure 5, we see an acceptable training result.
In Table 12, it can be seen that for x ≳ 0.52 , the neural-network solution y L a N N changes sign and becomes negative. It is important to emphasize that this is not an artifact of LaNN training: the reference numerical solution y G L behaves similarly, and the error remains small (ME ≈ 5.62 × 10 − 3 , MAE ≈ 2.76 × 10 − 3 , RMSE ≈ 3.25 × 10 − 3 ). Consequently, the negative values reflect a property of the mathematical model itself for the chosen variable order of the fractional derivative.
The physical admissibility of negative y depends on the interpretation of the function y ( x ) . Since the equation contains exponential nonlinearities e y and e y / 2 , it is most natural to interpret y not as density or temperature itself but as the logarithm of dimensionless density/temperature or as a dimensionless potential. In this case, a negative y does not mean negative density or temperature: the physical quantity e y remains strictly positive. For example, at x = 0.56 we have y ≈ − 0.103 , whence e y ≈ 0.902 ; at x = 1.0 , y ≈ − 1.171 , e y ≈ 0.310 . This means that density/temperature or potential become smaller than some reference value but do not lose physical meaning.
The metrics: ME: 5.62 × 10 − 3 , MAE: 2.76 × 10 − 3 , RMSE: 3.25 × 10 − 3 indicate the absence of outliers in the values. The numerical algorithm y G L worked in 0.08 s.
From Figure 5, we see that the LaNN neural network copes well with finding the solution of the problem: this is visible when comparing with the numerical solution. Also, from the loss function, it can be seen that the number of epochs can be reduced to 7000, which will accelerate training.
To confirm the efficiency of the neural-network algorithm, the inference time was measured—the direct run of an already trained model with fixed weight coefficients on a test sample of 2000 points. For this purpose, 10 runs were performed for the same trained model (Table 13). The goal is to evaluate the stability of the forward-pass time.
From Table 13, it can be seen that the inference time is approximately 1.5–1.9 milliseconds per run. The spread between runs is small, which indicates the stability of the computations. The fastest execution is 1.46 ms, and the slowest is 1.87 ms. These values show that the forward pass of the network takes fractions of a second, which is quite acceptable for many practical problems.
Next, the metrics were calculated (Table 14).
The mean inference time for 2000 points is 1.66 ms, and per point it is 0.83 microseconds (Table 14). This is a very high computation speed. The standard deviation of ∼ 0.12 ms confirms that the execution time varies weakly, i.e., the algorithm works predictably. The minimum and maximum are also close to the mean, which indicates the absence of outliers.

7. Conclusions

In this work, the LaNN (Laguerre Neural Network) neural-network method for the numerical solution of the Cauchy problem for the fractional Lane–Emden equation of variable order has been developed, programmatically implemented, and tested. The method is based on representing the solution as an expansion in orthogonal Laguerre polynomials with a shift to the point x 0 , which ensures exact satisfaction of the initial conditions of the Cauchy problem at x 0 . The weight coefficients are tuned during training by minimizing a special loss function that includes the residual of the differential equation and L 2 -regularization. The conducted computational experiments have shown the following.
In test examples with a known analytical solution (Examples 1 and 2), the maximum absolute error was 5.6 × 10 − 4 for the interval [ 0.01 , 1 ] and ∼ 2.7 × 10 − 2 for the substantially singular interval [ 10 − 10 , 1 ] with the Chebyshev distribution. In examples with a numerical reference (Examples 3 and 4), the maximum absolute error did not exceed 6.11 × 10 − 3 . These values confirm the efficiency of LaNN for the class of singular fractional differential equations. The basis shift allows exact satisfaction of the initial conditions for any x 0 ; in examples with f ( x ) = 0 , the initial conditions were specified at x 0 = 0 , and the shift to x 0 > 0 was applied in test examples with a manufactured solution.
The uniform and Chebyshev distributions give comparable results; however, the choice of distribution can be optimized depending on the behavior of the solution. In particular, for the strongly singular interval [ 10 − 10 , 1 ] , the Chebyshev distribution made it possible to reduce the maximum error by more than a factor of 60 compared with the uniform distribution (from ∼ 1.6 to ∼ 2.7 × 10 − 2 ).
The introduction of weights into the loss function allows one to control local accuracy: weights growing toward the boundary increase accuracy near the singularity. In Example 3, the weight φ 3 = 1 / x gave the smallest value of the loss function ( 1.01 × 10 − 3 ) and the minimum error near x 0 , while the weight φ 1 = 1 gave the most uniform error distribution over the interval.
A change in the exponent α substantially affects the complexity of training. For α ( x ) = 1 + sin ( x ) , the value of the loss function turned out to be more than an order of magnitude higher than for α ( x ) = 2 − 0.03 x , which indicates the need to adapt the architecture (for example, increase the polynomial degree or the number of collocation points) to preserve accuracy.
The vectorized implementation in PyTorch provides an average speedup of 30 times compared with the loop implementation and acceptable computation time (units to tens of seconds) for practical problems. The possibility of parallelization on a GPU can give a further increase in the speed of the training algorithm.
It has been shown that after training, the LaNN neural network provides fast and stable inference. This is a key advantage over traditional numerical methods, which may require re-solving the system of equations when points or parameters change. The obtained time characteristics (about 1.66 ms for 2000 points, or 0.83 μ s per point) confirm that the method is suitable for practical use, especially in problems where multiple evaluations of the solution at different points with fixed model parameters are required. In combination with the possibility of parallelization on a GPU, this makes LaNN a promising tool for the numerical analysis of variable-order fractional differential equations, especially in cases where classical methods encounter difficulties due to singularity or nonlocality.
The proposed LaNN implementation uses the operator D 0 x α ( x ) G C . This is natural for problems with x 0 = 0 and for verification by the manufactured-solution method. For practical problems with initial conditions at a point x 0 > 0 and unknown prehistory on [ 0 , x 0 ] , a transition to the operator D x 0 , x α ( x ) G C is required. Modification of the method in this direction seems promising and will be considered in further work.
Compared with classical finite-difference schemes, the LaNN method does not require grid construction, provides an analytical representation of the solution, and has fast inference (about 1.5–1.9 ms for 2000 points). Compared with physics-informed neural networks (PINNs), LaNN uses a single weight layer and an orthogonal Laguerre basis, which simplifies training and interpretation. Compared with spectral methods based on Legendre or Chebyshev polynomials, LaNN is naturally defined on a half-axis and agrees better with the nonlocality of the fractional operator. In contrast to the recently proposed VooPINN [?], which handles variable-order operators within a deep PINN architecture, LaNN uses a single trainable layer with an orthogonal Laguerre basis, which simplifies training and interpretation. Compared with the GA-optimized Laguerre network for fractal-fractional Bagley–Torvik equations [?], the present method additionally employs a shifted basis for exact enforcement of the Cauchy initial conditions and is adapted to the singular Lane–Emden nonlinearity. At the same time, a direct quantitative comparison of LaNN with PINNs, spectral methods, and high-order finite-difference schemes was not carried out in this paper. This is a limitation and a direction for future research.
The limitations of the work include: (a) manual selection of hyperparameters; (b) absence of a systematic study of the grid convergence of the reference solution y G L ; (c) absence of a quantitative comparison with other numerical and neural-network methods; (d) absence of an analysis of the sensitivity of the method to the choice of x min for x 0 = 0 ; (e) limitation of the domain of applicability to the cases x 0 = 0 and manufactured solution for x 0 > 0 .
Further research may be aimed at adapting the method to multidimensional problems, using other orthogonal bases (Hermite, Legendre), and integrating with active-learning methods for automatic selection of collocation points, as well as improving parallel training algorithms on CPU or GPU [26]. A separate direction is the transition to the operator D x 0 , x α ( x ) G C for practical problems with x 0 > 0 and unknown prehistory.

Author Contributions

Conceptualization, D.T. and R.P.; methodology, D.T. and R.P.; software, D.T.; validation, D.T. and R.P.; formal analysis, D.T. and R.P.; investigation, D.T. and R.P.; resources, R.P.; data curation, D.T.; writing—original draft preparation, D.T.; writing—review and editing, R.P.; visualization, D.T.; supervision, R.P.; project administration, R.P.; funding acquisition, R.P. All authors have read and agreed to the published version of the manuscript.

Funding

This work was carried out within the framework of the state assignment of IKIR FEB RAS No. 124012300245-2.

Data Availability Statement

The data presented in this study are available on request from the corresponding author.

Conflicts of Interest

The author declares no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
LaNN Laguerre Neural Network
PINN Physics-Informed Neural Network
GC Gerasimov–Caputo
RL Riemann–Liouville
GL Grünwald–Letnikov
ME Maximum Error
MAE Mean Absolute Error
RMSE Root-Mean-Square Error
CPU Central Processing Unit
GPU Graphics Processing Unit

References

  1. Kilbas, A.A.; Srivastava, H.M.; Trujillo, J.J. Theory and Applications of Fractional Differential Equations; Elsevier: Amsterdam, The Netherlands, 2006. [Google Scholar]
  2. Nakhushev, A.M. Fractional Calculus and Its Applications; Fizmatlit: Moscow, Russia, 2003. (In Russian) [Google Scholar]
  3. Podlubny, I. Fractional Differential Equations; Academic Press: San Diego, CA, USA, 1999. [Google Scholar]
  4. Mainardi, F. Fractional Calculus and Waves in Linear Viscoelasticity; Imperial College Press: London, UK, 2010. [Google Scholar]
  5. Evangelista, L.R.; Lenzi, E.K. Fractional Anomalous Diffusion. In An Introduction to Anomalous Diffusion and Relaxation; Springer, 2023; pp. 189–236. [Google Scholar]
  6. Ukaj, N.; Hellmich, C.; Scheiner, S. Aging Epidemiology: A Hereditary Mechanics–Inspired Approach to COVID-19 Fatality Rates. J. Eng. Mech. 2024, 150. [Google Scholar] [CrossRef]
  7. Tverdyi, D.A.; Parovik, R.I. Fractional Riccati equation to model the dynamics of COVID-19 coronavirus infection. J. Phys. Conf. Ser. 2021, 2094, 032042. [Google Scholar] [CrossRef]
  8. Sun, H.; Chang, A.; Zhang, Y.; Chen, W. A Review on Variable-Order Fractional Differential Equations: Mathematical Foundations, Physical Models, Numerical Methods and Applications. Fract. Calc. Appl. Anal. 2019, 22, 27–59. [Google Scholar] [CrossRef]
  9. Patnaik, S.; Hollkamp, J.P.; Semperlotti, F. Applications of variable-order fractional operators: A review. Proc. R. Soc. A 2020, 476, 20190498. [Google Scholar] [CrossRef] [PubMed]
  10. Tverdyi, D.A.; Makarov, E.O.; Parovik, R.I. Research of Stress-Strain State of Geo-Environment by Emanation Methods on the Example of α(t)-Model of Radon Transport Bull. KRASEC Phys. Math. Sci. 2023, 44, 86–104. [Google Scholar] [CrossRef]
  11. Lane, J.H. Art. IX.—On the Theoretical Temperature of the Sun; under the Hypothesis of a Gaseous Mass maintaining its Volume by its Internal Heat, and depending on the Laws of Gases as known to Terrestrial Experiment. Am. J. Sci. Arts 1870, 50, 57–74. [Google Scholar] [CrossRef]
  12. Emden, R. Gaskugeln: Anwendungen der mechanischen Wärmetheorie auf kosmologische und meteorologische Probleme; B.G. Teubner: Leipzig, Germany, 1907. [Google Scholar]
  13. Chandrasekhar, S. Introduction to the Study of Stellar Structure; Dover: NY, USA, 2012; 512p. [Google Scholar]
  14. Parand, K.; Dehghan, M.; Rezaei, A.R.; Ghaderi, S.M. An approximation algorithm for the solution of the nonlinear Lane–Emden type equations arising in astrophysics using Hermite functions collocation method. Comput. Phys. Commun. 2010, 181, 1096–1108. [Google Scholar] [CrossRef]
  15. Horedt, G.P. Polytropes: Applications in Astrophysics and Related Fields; Kluwer Academic Publishers: Dordrecht, The Netherlands, 2004. [Google Scholar]
  16. Kannaujiya, L.N.; Verma, A.K. A note on hybrid approach of variational iteration method for a type of fractional Lane–Emden equations. Sib. J. Comput. Math. 2026, 29, 253–264. [Google Scholar]
  17. Izadi, M.; Baleanu, D. An effective QLM-based Legendre matrix algorithm to solve the coupled system of fractional-order Lane–Emden equations. Appl. Numer. Math. 2023, 188, 1–15. [Google Scholar] [CrossRef]
  18. Singh, R.; Garg, H.; Guleria, V. Haar wavelet collocation approach for Lane–Emden equations arising in mathematical physics and astrophysics. Eur. Phys. J. Plus 2019, 134, 548. [Google Scholar] [CrossRef]
  19. Saadatmandi, A.; Ghasemi-Nasrabady, A.; Eftekari, A. Numerical study of singular fractional Lane–Emden type equations arising in astrophysics. J. Astrophys. Astron. 2019, 40, 27. [Google Scholar] [CrossRef]
  20. Delkhosh, M.; Parand, K. An efficient numerical method for solving nonlinear astrophysics equations of arbitrary order. Hacet. J. Math. Stat. 2019, 48, 1601–1619. [Google Scholar] [CrossRef]
  21. Nagy, A.M. Non-Standard finite difference schemes for solving variable-order fractional differential equations. Differ. Equ. Dyn. Syst. 2021, 29, 623–632. [Google Scholar] [CrossRef]
  22. Ortigueira, M.D.; Valério, D.; Machado, J.T. Variable order fractional systems. Commun. Nonlinear Sci. Numer. Simul. 2019, 71, 231–243. [Google Scholar] [CrossRef]
  23. Parovik, R.I. Mathematical Model of a Wide Class Memory Oscillators. Bull. South Ural State Univ. Ser. Math. Model. Program. Comput. Softw. 2018, 11, 108–122. [Google Scholar] [CrossRef]
  24. Novozhenova, O.G. Life And Science of Alexey Gerasimov, One of the Pioneers of Fractional Calculus in Soviet Union. FCAA 2017, 20, 790–809. [Google Scholar] [CrossRef]
  25. Caputo, M.; Fabrizio, M. On the notion of fractional derivative and applications to the hysteresis phenomena. Meccanica 2017, 52, 3043–3052. [Google Scholar] [CrossRef]
  26. Tverdyi, D.A.; Parovik, R.I. Study of the Efficiency of Parallel Computing for Constructing Bifurcation Diagrams of the Fractional Selkov Oscillator with Variable Coefficients and Memory. Computation 2026, 14, 32. [Google Scholar] [CrossRef]
  27. Tverdyi, D.A.; Parovik, R.I. Hybrid GPU–CPU Efficient Implementation of a Parallel Numerical Algorithm for Solving the Cauchy Problem for a Nonlinear Differential Riccati Equation of Fractional Variable Order. Mathematics 2023, 11, 3358. [Google Scholar] [CrossRef]
  28. Tverdyi, D.A. Restoration of the order of fractional derivative in the problem of mathematical modelling of radon accumulation in the excess volume of the storage chamber based on the data of Petropavlovsk-Kamchatsky geodynamic polygon NEWS of the Kabardino-Balkarian scientific center of RAS 2023, 116, 83–94.
  29. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  30. Farea, A.; Yli-Harja, O.; Emmert-Streib, F. Understanding Physics-Informed Neural Networks: Techniques, Applications, Trends, and Challenges. AI 2024, 5, 1534–1557. [Google Scholar] [CrossRef]
  31. Toscano, J.D.; Oommen, V.; Varghese, A.J.; et al. From pinns to pikans: Recent advances in physics-informed machine learning. Learn. Comput. Sci. Eng. 2025, 1, 15. [Google Scholar] [CrossRef] [PubMed]
  32. Zhang, Z.; Dias, D.; Anitescu, C.; Pan, Q.; Rabczuk, T. Physics-informed neural network for elastic-plastic mesh-free modelling of tunnelling-induced deformation. Acta Geotech. 2026, 21, 349–370. [Google Scholar] [CrossRef]
  33. Thawon, I.; et al. Physics-informed neural networks: Current progress and challenges in computational solid and structural mechanics. CMES-Comput. Model. Eng. Sci. 2026, 146, 2. [Google Scholar] [CrossRef]
  34. Zhao, Z.; Wang, Y.; Zhang, W.; Ba, Z.; Sun, L. Physics-informed neural networks in heat transfer-dominated multiphysics systems: A comprehensive review. Eng. Appl. Artif. Intell. 2025, 157, 111098. [Google Scholar] [CrossRef]
  35. Liu, W.; Liu, Y. VooPINN: Physics-informed neural network with variable-order operator for forward and inverse problems of time fractional partial differential equations. Appl. Math. Comput. 2026, 524, 130044. [Google Scholar] [CrossRef]
  36. Parovik, R. Algorithms for Solving Ordinary Differential Equations Based on Orthogonal Polynomial Neural Networks. Algorithms 2026, 19, 82. [Google Scholar] [CrossRef]
  37. Laguerre, E. Sur l’intégrale ∫xe-xdx. Bull. Soc. Math. Fr. 1879, 7, 72–81. [Google Scholar]
  38. Szegő, G. Orthogonal Polynomials; Colloquium Publications; American Mathematical Society: Providence, RI, USA, 1939; Volume 23, pp. 401–432. [Google Scholar]
  39. Erdélyi, A.; Magnus, W.; Oberhettinger, F.; Tricomi, F.G. Higher Transcendental Functions; McGraw-Hill: New York, NY, USA, 1953; Volume 2. [Google Scholar]
  40. Nur Kurmanc, S.; Ozavsar, M. Single-layer Laguerre neural network model for solving Lane–Emden–Fowler type equations. Math. Commun. 2025, 30, 243–258. [Google Scholar] [CrossRef]
  41. Sabir, Z.; Raja, M.A.Z.; Baleanu, D. Fractional Mayer neuro-swarm heuristic solver for multi-fractional order doubly singular model based on Lane–Emden equation. Fractals 2021, 29, 2140017. [Google Scholar] [CrossRef]
  42. Hu, X.; Shang, L.; Zhang, Y.; Liu, Y. Numerical solution of fractal-fractional order Bagley–Torvik differential equations based on Ga-Laguerre neural network. Commun. Nonlinear Sci. Numer. Simul. 2026, 157, 109387. [Google Scholar] [CrossRef]
  43. Shaw, Z.A. Learn Python the Hard Way; Addison-Wesley Professional: Boston, MA, USA, 2024. [Google Scholar]
  44. Imambi, S.; Prakash, K.B.; Kanagachidambaresan, G.R. PyTorch. In Programming with TensorFlow: Solution for Edge Computing Applications; Springer: Cham, Switzerland, 2021; pp. 87–104. [Google Scholar]
  45. Tian, W.Y.; Zhou, H.; Deng, W. A class of second order difference approximations for solving space fractional diffusion equations. Math. Comput. 2015, 84, 1703–1727. [Google Scholar] [CrossRef]
Figure 1. Architecture of the LaNN network with a shifted basis.
Figure 1. Architecture of the LaNN network with a shifted basis.
Preprints 234990 g001
Figure 2. Solution functions, loss, and error for Example 1 with a uniform distribution of collocation points.
Figure 2. Solution functions, loss, and error for Example 1 with a uniform distribution of collocation points.
Preprints 234990 g002
Figure 3. Loss functions versus seeds.
Figure 3. Loss functions versus seeds.
Preprints 234990 g003
Figure 4. Solution functions, loss, and error for Example 2 with a uniform distribution of collocation points and weight ϕ ( x ) = 1 / x .
Figure 4. Solution functions, loss, and error for Example 2 with a uniform distribution of collocation points and weight ϕ ( x ) = 1 / x .
Preprints 234990 g004
Figure 5. Solution functions, loss, error, and fractional-derivative order for Example 4 with a uniform distribution of collocation points.
Figure 5. Solution functions, loss, error, and fractional-derivative order for Example 4 with a uniform distribution of collocation points.
Preprints 234990 g005
Table 1. LaNN training hyperparameters.
Table 1. LaNN training hyperparameters.
Hyperparameter Value
Laguerre polynomial degree, N 15
Number of collocation points, M 1000
Number of epochs 10,000
Initial learning rate, η 0.005
L 2 -regularization coefficient, λ 10 − 5
Weight for the residual, φ ( x ) x
Table 2. Comparison of exact and neural-network solutions for Example 1.
Table 2. Comparison of exact and neural-network solutions for Example 1.
x y e x y L a N N | y ex − y LaNN |
0.0100 1.999700 × 10 − 6 1.999700 × 10 − 6 4.547474 × 10 − 13
0.1200 3.449779 × 10 − 3 3.729742 × 10 − 3 2.799632 × 10 − 4
0.2300 2.425005 × 10 − 2 2.422121 × 10 − 2 2.883561 × 10 − 5
0.3400 7.820708 × 10 − 2 7.781105 × 10 − 2 3.960282 × 10 − 4
0.4500 1.810198 × 10 − 1 1.807360 × 10 − 1 2.837926 × 10 − 4
0.5600 3.482816 × 10 − 1 3.482684 × 10 − 1 1.326203 × 10 − 5
0.6700 5.954807 × 10 − 1 5.953913 × 10 − 1 8.934736 × 10 − 5
0.7800 9.379994 × 10 − 1 9.375436 × 10 − 1 4.557967 × 10 − 4
0.8900 1.391115 × 10 0 1.390633 × 10 0 4.823208 × 10 − 4
1.0000 1.970000 × 10 0 1.970000 × 10 0 1.192093 × 10 − 7
Table 3. Error metrics on 2000 test points uniformly distributed on the interval [ 0.01 , 1 ] .
Table 3. Error metrics on 2000 test points uniformly distributed on the interval [ 0.01 , 1 ] .
Metric Value
Maximum error (ME) 5.55 × 10 − 4
Mean error (MAE) 2.38 × 10 − 4
Root-mean-square error (RMSE) 2.89 × 10 − 4
Table 4. Reproducibility parameters of the computational experiment.
Table 4. Reproducibility parameters of the computational experiment.
Parameter Value
Base random seed 1
Number of runs 10
Seeds 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Weight initialization normal(0, 0.1)
Optimizer Adam
learning rate 0.005
λ reg 1e-05
Scheduler ReduceLROnPlateau
mode min
patience 500
factor 0.5
min_lr 1.0e-07
threshold 1.0e-04
Early stopping no
improvement type relative
δ —
patience —
Device cpu
torch.set_num_threads 1
PyTorch version 2.7.1+cu118
NumPy version 2.1.3
Python version 3.13.1
Table 5. Statistics over 10 independent training runs.
Table 5. Statistics over 10 independent training runs.
Run Seed Best Loss Epochs Training time, s ME MAE RMSE
1 1 1.040e-03 10,000 13.08 6.136e-04 2.902e-04 3.411e-04
2 2 1.018e-03 10,000 13.12 6.205e-04 2.901e-04 3.419e-04
3 3 8.720e-04 10,000 13.11 5.662e-04 2.669e-04 3.140e-04
4 4 1.117e-03 10,000 13.32 6.679e-04 3.231e-04 3.773e-04
5 5 7.449e-04 10,000 14.04 4.994e-04 2.335e-04 2.747e-04
6 6 9.654e-04 10,000 13.71 5.698e-04 2.623e-04 3.088e-04
7 7 1.020e-03 10,000 13.70 6.068e-04 2.887e-04 3.388e-04
8 8 1.060e-03 10,000 13.67 6.517e-04 3.182e-04 3.703e-04
9 9 9.270e-04 10,000 13.69 5.836e-04 2.794e-04 3.274e-04
10 10 1.035e-03 10,000 13.77 6.167e-04 2.843e-04 3.352e-04
Mean — 9.801e-04 — 1.352e+01 5.996e-04 2.837e-04 3.330e-04
Std — 1.080e-04 — 3.366e-01 4.791e-05 2.610e-05 2.966e-05
Table 6. Stability of metrics over 10 independent training runs.
Table 6. Stability of metrics over 10 independent training runs.
Metric Mean Std Std/Mean, %
Best Loss 9.801e-04 1.080e-04 11.02
Training time, s 13.5213 0.3366 2.49
ME 5.996e-04 4.791e-05 7.99
MAE 2.837e-04 2.610e-05 9.20
RMSE 3.330e-04 2.966e-05 8.91
Table 7. Comparison of Laguerre and Legendre bases with identical settings (degree 15, 1000 collocation points, 10,000 epochs, lr=0.005, λ =1e-05, ϕ x = x , seeds 1–5, 5 runs). All metrics are averaged over independent runs.
Table 7. Comparison of Laguerre and Legendre bases with identical settings (degree 15, 1000 collocation points, 10,000 epochs, lr=0.005, λ =1e-05, ϕ x = x , seeds 1–5, 5 runs). All metrics are averaged over independent runs.
Basis Best Loss Std(Best Loss) RMSE ME MAE Train. time, s
Laguerre 9.585e-04 1.488e-04 3.298e-04 5.935e-04 2.807e-04 13.382
Legendre 2.135e-03 4.289e-04 9.490e-04 1.808e-03 6.924e-04 13.561
Table 8. Error analysis for Example 2 (uniform distribution).
Table 8. Error analysis for Example 2 (uniform distribution).
x y ex y LaNN | y ex − y LaNN |
1.0000e-10 2.000000e-30 2.000000e-30 0.000000e+00
0.1111 2.738912e-03 -1.772174e-03 4.511085e-03
0.2222 2.187471e-02 -8.485829e-03 3.036054e-02
0.3333 7.370371e-02 -1.419560e-02 8.789931e-02
0.4444 1.744124e-01 -8.611594e-03 1.830240e-01
0.5556 3.400778e-01 1.761026e-02 3.224675e-01
0.6667 5.866666e-01 7.007713e-02 5.165895e-01
0.7778 9.300366e-01 1.496592e-01 7.803774e-01
0.8889 1.385935e+00 2.527042e-01 1.133231e+00
1.0000 1.970000e+00 3.720084e-01 1.597992e+00
Table 9. Error analysis for Example 2 (Chebyshev distribution).
Table 9. Error analysis for Example 2 (Chebyshev distribution).
x y ex y LaNN | y ex − y LaNN |
1.0000e-10 2.000000e-30 2.000000e-30 0.000000e+00
0.1111 2.738912e-03 2.936242e-03 1.973307e-04
0.2222 2.187471e-02 2.180496e-02 6.975234e-05
0.3333 7.370371e-02 7.121572e-02 2.487995e-03
0.4444 1.744124e-01 1.680429e-01 6.369576e-03
0.5556 3.400778e-01 3.317674e-01 8.310407e-03
0.6667 5.866666e-01 5.823949e-01 4.271686e-03
0.7778 9.300366e-01 9.373112e-01 7.274628e-03
0.8889 1.385935e+00 1.408024e+00 2.208889e-02
1.0000 1.970000e+00 1.997429e+00 2.742910e-02
Table 10. LaNN training times depending on various weights φ 1 = 1 , φ 2 = x , φ 3 = 1 / x and collocation-point distributions.
Table 10. LaNN training times depending on various weights φ 1 = 1 , φ 2 = x , φ 3 = 1 / x and collocation-point distributions.
Collocation points Uniform distribution Chebyshev distribution
φ 1 φ 2 φ 3 φ 1 φ 2 φ 3
t v e c , s 12.94 13.06 13.22 12.92 13.05 14.24
t c i c , s 381.42 398.85 394.46 395.62 389.74 394.65
Table 11. Error analysis E r r 1 , E r r 2 , E r r 3 for Example 3.
Table 11. Error analysis E r r 1 , E r r 2 , E r r 3 for Example 3.
x y G L y L a N N , φ 1 = 1 y L a N N , φ 2 = x y L a N N , φ 3 = 1 / x E r r 1 E r r 2 E r r 3
0.01 9.9953 × 10 − 1 9.9953 × 10 − 1 9.9952 × 10 − 1 9.9953 × 10 − 1 5.50 × 10 − 7 1.09 × 10 − 5 1.64 × 10 − 7
0.12 9.3877 × 10 − 1 9.3311 × 10 − 1 9.3263 × 10 − 1 9.3304 × 10 − 1 5.66 × 10 − 3 6.11 × 10 − 3 5.72 × 10 − 3
0.23 7.6978 × 10 − 1 7.6533 × 10 − 1 7.6524 × 10 − 1 7.6512 × 10 − 1 4.46 × 10 − 3 4.57 × 10 − 3 4.66 × 10 − 3
0.34 5.2363 × 10 − 1 5.2054 × 10 − 1 5.2118 × 10 − 1 5.2048 × 10 − 1 3.09 × 10 − 3 2.45 × 10 − 3 3.17 × 10 − 3
0.45 2.2913 × 10 − 1 2.2676 × 10 − 1 2.2757 × 10 − 1 2.2708 × 10 − 1 2.38 × 10 − 3 1.56 × 10 − 3 2.13 × 10 − 3
0.56 − 8.9210 × 10 − 2 − 9.1086 × 10 − 2 − 9.0750 × 10 − 2 − 9.0559 × 10 − 2 1.88 × 10 − 3 1.51 × 10 − 3 1.44 × 10 − 3
0.67 − 4.1293 × 10 − 1 − 4.1475 × 10 − 1 − 4.1394 × 10 − 1 − 4.1447 × 10 − 1 8.16 × 10 − 4 9.96 × 10 − 4 5.81 × 10 − 4
0.78 − 7.3408 × 10 − 1 − 7.3344 × 10 − 1 − 7.3383 × 10 − 1 − 7.3365 × 10 − 1 6.35 × 10 − 4 2.49 × 10 − 4 4.54 × 10 − 4
0.89 − 1.0434 × 10 0 − 1.0421 × 10 0 − 1.0423 × 10 0 − 1.0425 × 10 0 1.34 × 10 − 3 1.13 × 10 − 3 9.98 × 10 − 4
1.00 − 1.3390 × 10 0 − 1.3381 × 10 0 − 1.3381 × 10 0 − 1.3383 × 10 0 9.27 × 10 − 4 8.93 × 10 − 4 8.34 × 10 − 4
Table 12. Error analysis for Example 4.
Table 12. Error analysis for Example 4.
x y G L y L a N N Error
0.010 9.992793 × 10 − 1 9.995276 × 10 − 1 2.483870 × 10 − 4
0.120 9.079491 × 10 − 1 9.068518 × 10 − 1 1.097338 × 10 − 3
0.230 7.057346 × 10 − 1 7.027509 × 10 − 1 2.983750 × 10 − 3
0.340 4.466310 × 10 − 1 4.468001 × 10 − 1 1.691433 × 10 − 4
0.450 1.689089 × 10 − 1 1.733979 × 10 − 1 5.038223 × 10 − 3
0.560 − 1.072130 × 10 − 1 − 1.029697 × 10 − 1 4.243298 × 10 − 3
0.670 − 3.763564 × 10 − 1 − 3.770050 × 10 − 1 6.486260 × 10 − 4
0.780 − 6.416574 × 10 − 1 − 6.468235 × 10 − 1 5.166121 × 10 − 3
0.890 − 9.072025 × 10 − 1 − 9.116535 × 10 − 1 4.451046 × 10 − 3
1.000 − 1.170590 × 10 0 − 1.171030 × 10 0 4.399335 × 10 − 4
Table 13. Inference time measurements.
Table 13. Inference time measurements.
Run number Time, s
1 1.868010 × 10 − 3
2 1.688004 × 10 − 3
3 1.577377 × 10 − 3
4 1.790762 × 10 − 3
5 1.625299 × 10 − 3
6 1.679420 × 10 − 3
7 1.547337 × 10 − 3
8 1.776457 × 10 − 3
9 1.589775 × 10 − 3
10 1.460791 × 10 − 3
Table 14. Measurement of neural-network inference time (10 runs).
Table 14. Measurement of neural-network inference time (10 runs).
Parameter Value
Test sample size 2000
Mean time of one inference, s 1.660323 × 10 − 3
Standard deviation, s 1.185026 × 10 − 4
Minimum / maximum, s 1.460791 × 10 − 3 / 1.868010 × 10 − 3
Mean time per point, s 8.301616 × 10 − 7
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.